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

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

Issue 1419843002: Hold a reference to any kind of context in WindowAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 96c864e2416d088e4f84ec39f0c5315c16ba0ffd..e2b6d80db115d5a088063d5b39cfb7d8ee908ce8 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -232,6 +232,7 @@ scoped_ptr<cc::SurfaceIdAllocator> CompositorImpl::CreateSurfaceIdAllocator() {
CompositorImpl::CompositorImpl(CompositorClient* client,
gfx::NativeWindow root_window)
: root_layer_(cc::Layer::Create(Compositor::LayerSettings())),
+ resource_manager_(root_window->GetJavaDisplayContext().obj()),
boliu 2015/10/21 16:55:38 So continuing the previous conversation, can resou
gsennton 2015/10/21 17:09:08 I don't see how that would help (but I might be mi
boliu 2015/10/21 17:13:34 Conceptually, window_android.cc and resource_manag
gsennton 2015/10/22 10:33:36 ../../ui/android/java/src/org/chromium/ui/resource
boliu 2015/10/22 14:12:59 Jared, any thoughts here? A bit weird these Window
surface_id_allocator_(GetSurfaceManager() ? CreateSurfaceIdAllocator()
: nullptr),
has_transparent_background_(false),

Powered by Google App Engine
This is Rietveld 408576698