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

Unified Diff: content/browser/compositor/gpu_browser_compositor_output_surface.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 | « content/browser/compositor/gpu_browser_compositor_output_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
index 943a27ac962a60cbbdfc5af5c1e9e417d6e5314a..81da36dc9fdea5a224867ea4be8187271b661436 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
@@ -153,4 +153,12 @@ bool GpuBrowserCompositorOutputSurface::
}
#endif
+bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const {
+#if defined(OS_MACOSX)
+ return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED;
+#else
+ return false;
+#endif
+}
+
} // namespace content
« no previous file with comments | « content/browser/compositor/gpu_browser_compositor_output_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698