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

Unified Diff: components/viz/frame_sinks/mojo_frame_sink_manager.cc

Issue 2802773002: Pick surface lifetime type with arg. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « components/viz/frame_sinks/mojo_frame_sink_manager.h ('k') | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/frame_sinks/mojo_frame_sink_manager.cc
diff --git a/components/viz/frame_sinks/mojo_frame_sink_manager.cc b/components/viz/frame_sinks/mojo_frame_sink_manager.cc
index e3ede348d28489e29fb0ed1e9a34a535563c68bd..71b56c630d37e1c25a33b5873c61ec102025283e 100644
--- a/components/viz/frame_sinks/mojo_frame_sink_manager.cc
+++ b/components/viz/frame_sinks/mojo_frame_sink_manager.cc
@@ -19,10 +19,13 @@
namespace viz {
MojoFrameSinkManager::MojoFrameSinkManager(
+ bool use_surface_references,
DisplayProvider* display_provider,
cc::mojom::FrameSinkManagerRequest request,
cc::mojom::FrameSinkManagerClientPtr client)
- : manager_(cc::SurfaceManager::LifetimeType::REFERENCES),
+ : manager_(use_surface_references
+ ? cc::SurfaceManager::LifetimeType::REFERENCES
+ : cc::SurfaceManager::LifetimeType::SEQUENCES),
display_provider_(display_provider),
client_(std::move(client)),
binding_(this, std::move(request)) {
« no previous file with comments | « components/viz/frame_sinks/mojo_frame_sink_manager.h ('k') | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698