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

Unified Diff: content/browser/compositor/surface_utils.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/surface_utils.cc
diff --git a/content/browser/compositor/surface_utils.cc b/content/browser/compositor/surface_utils.cc
index 4cbd80dfaba4f2b39b2b912799351c9e32a10d41..507c063f713e9371892469b214179eb63384c9b1 100644
--- a/content/browser/compositor/surface_utils.cc
+++ b/content/browser/compositor/surface_utils.cc
@@ -158,12 +158,12 @@ void PrepareBitmapCopyOutputResult(
namespace content {
-std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() {
+uint32_t AllocateSurfaceClientId() {
#if defined(OS_ANDROID)
- return CompositorImpl::CreateSurfaceIdAllocator();
+ return CompositorImpl::AllocateSurfaceClientId();
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
- return factory->GetContextFactory()->CreateSurfaceIdAllocator();
+ return factory->GetContextFactory()->AllocateSurfaceClientId();
#endif
}
« no previous file with comments | « content/browser/compositor/surface_utils.h ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698