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

Unified Diff: components/exo/surface.cc

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 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 | « cc/trees/layer_tree_host.h ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index f4851060c1f1466befacc854585b927ac2890368..f814f77ae5b542c8a85bac530aced073394a0235 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -210,10 +210,12 @@ Surface::Surface()
window_->SetEventTargeter(base::WrapUnique(new CustomWindowTargeter));
window_->set_owned_by_parent(false);
factory_owner_->surface_ = this;
+ uint32_t client_id =
+ aura::Env::GetInstance()->context_factory()->AllocateSurfaceClientId();
factory_owner_->id_allocator_ =
- aura::Env::GetInstance()->context_factory()->CreateSurfaceIdAllocator();
- factory_owner_->surface_factory_.reset(
- new cc::SurfaceFactory(surface_manager_, factory_owner_.get()));
+ base::WrapUnique(new cc::SurfaceIdAllocator(client_id));
+ factory_owner_->surface_factory_.reset(new cc::SurfaceFactory(
+ client_id, surface_manager_, factory_owner_.get()));
aura::Env::GetInstance()->context_factory()->AddObserver(this);
}
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698