Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp

Issue 9969020: Merge 112568 - [chromium] Ensure framebuffer exists at the start of beginDrawingFrame. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp (revision 112692)
+++ Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp (working copy)
@@ -350,10 +350,6 @@
if (!visible)
releaseRenderSurfaceTextures();
- // FIXME: Remove this once framebuffer is automatically recreated on first use
- if (visible)
- ensureFramebuffer();
-
// TODO: Replace setVisibilityCHROMIUM with an extension to explicitly manage front/backbuffers
// crbug.com/116049
if (m_capabilities.usingSetVisibility) {
@@ -406,6 +402,10 @@
void LayerRendererChromium::beginDrawingFrame()
{
ASSERT(rootLayer());
+
+ // FIXME: Remove this once framebuffer is automatically recreated on first use
+ ensureFramebuffer();
+
m_defaultRenderSurface = rootLayer()->renderSurface();
// FIXME: use the frame begin time from the overall compositor scheduler.

Powered by Google App Engine
This is Rietveld 408576698