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

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

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nit 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
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 af1f5fe02afd3f6310508fd9b37ed3e7108bedfa..1827ba8e32b78a4ab0275d5bd0b2b2a916bda4f8 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -690,13 +690,8 @@ ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
return this;
}
-std::unique_ptr<cc::SurfaceIdAllocator>
-GpuProcessTransportFactory::CreateSurfaceIdAllocator() {
- std::unique_ptr<cc::SurfaceIdAllocator> allocator =
- base::WrapUnique(new cc::SurfaceIdAllocator(next_surface_client_id_++));
- if (GetSurfaceManager())
- allocator->RegisterSurfaceClientId(GetSurfaceManager());
- return allocator;
+uint32_t GpuProcessTransportFactory::AllocateSurfaceClientId() {
+ return next_surface_client_id_++;
}
void GpuProcessTransportFactory::ResizeDisplay(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