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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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 8ce5788af578513d803fc46c76f47c3c5e076542..23ca44b9706d642ccc46f486a0be62d3636315dc 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -174,7 +174,7 @@ GpuProcessTransportFactory::GpuProcessTransportFactory()
callback_factory_(this) {
cc::SetClientNameForMetrics("Browser");
- surface_manager_ = base::WrapUnique(new cc::SurfaceManager);
+ surface_manager_ = base::WrapUnique(new cc::SurfaceManager(nullptr));
task_graph_runner_->Start("CompositorTileWorker1",
base::SimpleThread::Options());
@@ -650,8 +650,8 @@ ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
return this;
}
-uint32_t GpuProcessTransportFactory::AllocateSurfaceClientId() {
- return next_surface_client_id_++;
+cc::FrameSinkId GpuProcessTransportFactory::AllocateFrameSinkId() {
+ return cc::FrameSinkId(next_surface_client_id_++, 0);
}
void GpuProcessTransportFactory::SetDisplayVisible(ui::Compositor* compositor,
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.h ('k') | content/browser/compositor/surface_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698