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

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

Issue 1808313002: Register surface namespace in BlimpUiContextFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move SurfaceManager to ContextFactory Created 4 years, 9 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 7d4769ac53f5bc4b274fd3a8cfd942147ba44a41..72db5eca141c74fd53992969d19cc3eeef5b6c89 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -481,12 +481,15 @@ ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
return this;
}
+cc::SurfaceManager* GpuProcessTransportFactory::GetSurfaceManager() {
+ return surface_manager_.get();
+}
+
scoped_ptr<cc::SurfaceIdAllocator>
GpuProcessTransportFactory::CreateSurfaceIdAllocator() {
scoped_ptr<cc::SurfaceIdAllocator> allocator =
make_scoped_ptr(new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
- if (GetSurfaceManager())
- allocator->RegisterSurfaceIdNamespace(GetSurfaceManager());
+ allocator->RegisterSurfaceIdNamespace(surface_manager_.get());
return allocator;
}
@@ -501,10 +504,6 @@ void GpuProcessTransportFactory::ResizeDisplay(ui::Compositor* compositor,
data->display_client->display()->Resize(size);
}
-cc::SurfaceManager* GpuProcessTransportFactory::GetSurfaceManager() {
- return surface_manager_.get();
-}
-
GLHelper* GpuProcessTransportFactory::GetGLHelper() {
if (!gl_helper_ && !per_compositor_data_.empty()) {
scoped_refptr<cc::ContextProvider> provider =

Powered by Google App Engine
This is Rietveld 408576698