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

Unified Diff: cc/surfaces/display.cc

Issue 1227233002: Mac: Don't draw a cc::Surface while suspended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix other platform compile Created 5 years, 5 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
« no previous file with comments | « cc/output/output_surface.cc ('k') | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 42ecfd04760fe17256dd041b1fb7a9bf9b44da81..c701790cbe5b0c2b0145a3b8ad987cc0a0b7f85f 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -148,6 +148,9 @@ bool Display::DrawAndSwap() {
if (!output_surface_)
return false;
+ if (output_surface_->SurfaceIsSuspendForRecycle())
+ return false;
+
scoped_ptr<CompositorFrame> frame =
aggregator_->Aggregate(current_surface_id_);
if (!frame)
« no previous file with comments | « cc/output/output_surface.cc ('k') | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698