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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.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/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 56926a544c3a5efb2f171145e992573467118280..e4ea6a1c9c2707f6680bb9e59262c4d8aecc0bd1 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -50,7 +50,7 @@ RenderWidgetHostViewChildFrame::RenderWidgetHostViewChildFrame(
observing_begin_frame_source_(false),
parent_surface_client_id_(0),
weak_factory_(this) {
- id_allocator_ = CreateSurfaceIdAllocator();
+ id_allocator_.reset(new cc::SurfaceIdAllocator(AllocateSurfaceClientId()));
RegisterSurfaceNamespaceId();
host_->SetView(this);

Powered by Google App Engine
This is Rietveld 408576698