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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2383373002: Reduce SurfaceIdAllocator usage and tie SurfaceFactory to a single FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index 99885627717e4e0183ecd2713ddc2c751501e624..0e8fb0ac34cdc5418f178ce258541956e7e67154 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -553,12 +553,12 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
auto compositor_frame_sink =
vulkan_context_provider
? base::MakeUnique<cc::DirectCompositorFrameSink>(
- surface_manager_.get(), compositor->surface_id_allocator(),
+ compositor->frame_sink_id(), surface_manager_.get(),
data->display.get(),
static_cast<scoped_refptr<cc::VulkanContextProvider>>(
vulkan_context_provider))
: base::MakeUnique<cc::DirectCompositorFrameSink>(
- surface_manager_.get(), compositor->surface_id_allocator(),
+ compositor->frame_sink_id(), surface_manager_.get(),
data->display.get(), context_provider,
shared_worker_context_provider_);
data->display->Resize(compositor->size());

Powered by Google App Engine
This is Rietveld 408576698