Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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

Issue 9950004: Merge 112446 - [chromium] Scheduler should not tell FrameRateController to begin a frame when we do… (Closed) Base URL:
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 112607)
+++ Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp (working copy)
@@ -1073,13 +1073,13 @@
-void LayerRendererChromium::swapBuffers(const IntRect& subBuffer)
+bool LayerRendererChromium::swapBuffers(const IntRect& subBuffer)
// FIXME: Remove this once gpu process supports ignoring swap buffers command while framebuffer is discarded.
// Alternatively (preferably?), protect all cc code so as not to attempt a swap after a framebuffer discard.
if (m_isFramebufferDiscarded) {
- return;
+ return false;
TRACE_EVENT("LayerRendererChromium::swapBuffers", this, 0);
@@ -1098,6 +1098,7 @@
+ return true;
void LayerRendererChromium::onSwapBuffersComplete()

Powered by Google App Engine
This is Rietveld 408576698