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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.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/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index f2581502988772939df41e04b4fa9b97a3f6314a..4a64976ca1ebd178af2e9194c25d434bd45da046 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -346,7 +346,8 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
observing_root_window_(false),
weak_ptr_factory_(this) {
if (CompositorImpl::GetSurfaceManager())
- id_allocator_ = CompositorImpl::CreateSurfaceIdAllocator();
+ id_allocator_.reset(
+ new cc::SurfaceIdAllocator(CompositorImpl::AllocateSurfaceClientId()));
host_->SetView(this);
SetContentViewCore(content_view_core);
}

Powered by Google App Engine
This is Rietveld 408576698