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

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.cc

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android + Addressed Antoine's comment 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/renderer_host/offscreen_canvas_surface_impl.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
index 5689bff4b0192c45746ad98092453689972df6d1..b3329778c8dea0e120f63fa6175accb4a098b694 100644
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
@@ -21,7 +21,7 @@ void OffscreenCanvasSurfaceImpl::Create(
OffscreenCanvasSurfaceImpl::OffscreenCanvasSurfaceImpl(
mojo::InterfaceRequest<blink::mojom::OffscreenCanvasSurface> request)
- : id_allocator_(CreateSurfaceIdAllocator()),
+ : id_allocator_(new cc::SurfaceIdAllocator(AllocateSurfaceClientId())),
binding_(this, std::move(request)) {}
OffscreenCanvasSurfaceImpl::~OffscreenCanvasSurfaceImpl() {

Powered by Google App Engine
This is Rietveld 408576698