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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2382873002: Replace usage of SurfaceId's client_id with 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
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | cc/surfaces/direct_compositor_frame_sink_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/direct_compositor_frame_sink.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
index 2552a3c6030d9ef8f9a1d995242cbca50d3163ae..7a75fe182f511ebdb0842884ca5280fe95652d98 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -59,7 +59,7 @@ bool DirectCompositorFrameSink::BindToClient(
DCHECK(thread_checker_.CalledOnValidThread());
surface_manager_->RegisterSurfaceFactoryClient(
- surface_id_allocator_->client_id(), this);
+ surface_id_allocator_->frame_sink_id(), this);
if (!CompositorFrameSink::BindToClient(client))
return false;
@@ -73,7 +73,7 @@ bool DirectCompositorFrameSink::BindToClient(
// Avoid initializing GL context here, as this should be sharing the
// Display's context.
display_->Initialize(this, surface_manager_,
- surface_id_allocator_->client_id());
+ surface_id_allocator_->frame_sink_id());
return true;
}
@@ -83,7 +83,7 @@ void DirectCompositorFrameSink::DetachFromClient() {
// Unregister the SurfaceFactoryClient here instead of the dtor so that only
// one client is alive for this namespace at any given time.
surface_manager_->UnregisterSurfaceFactoryClient(
- surface_id_allocator_->client_id());
+ surface_id_allocator_->frame_sink_id());
if (!delegated_surface_id_.is_null())
factory_.Destroy(delegated_surface_id_);
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | cc/surfaces/direct_compositor_frame_sink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698