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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 199523002: cc: Throttle swaps in Scheduler instead of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: dana's comments Created 6 years, 8 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: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index dd9d632bad46c66dc8511325b244b8bda55b1356..61611ca706e6039c335fd0b29e607f57fa088b05 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -130,6 +130,8 @@ void CompositorOutputSurface::ShortcutSwapAck(
}
void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
+ DCHECK(!is_lost_);
+
if (layout_test_mode_ && use_swap_compositor_frame_message_) {
// This code path is here to support layout tests that are currently
// doing a readback in the renderer instead of the browser. So they

Powered by Google App Engine
This is Rietveld 408576698