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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2687433002: Move surface reference code to CompositorFrameSinkSupport. (Closed)
Patch Set: Revert to patch 2 to reland. Created 3 years, 10 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/surfaces/referenced_surface_tracker.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index f0e9630b3a6d9fd787aca4175d165677f8769ea3..82ba742ddc3588d214a7d504566dd46a812dbcce 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -156,6 +156,10 @@ class CC_SURFACES_EXPORT SurfaceManager {
return reference_factory_;
}
+ bool using_surface_references() const {
+ return lifetime_type_ == LifetimeType::REFERENCES;
+ }
+
private:
friend class SurfaceManagerRefTest;
« no previous file with comments | « cc/surfaces/referenced_surface_tracker.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698