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

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

Issue 2562733002: Implement our own GLThread for VR Shell. (Closed)
Patch Set: sigh Created 4 years 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
« no previous file with comments | « content/browser/media/android/browser_surface_view_manager.cc ('k') | gpu/ipc/common/gpu_surface_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91f20de9a037eced030689532e55fcc8556fd08e..b017329956177fa1c6f306bea8ae2da4815de96d 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -454,8 +454,6 @@ void CompositorImpl::SetRootLayer(scoped_refptr<cc::Layer> root_layer) {
void CompositorImpl::SetSurface(jobject surface) {
JNIEnv* env = base::android::AttachCurrentThread();
- base::android::ScopedJavaLocalRef<jobject> j_surface(env, surface);
-
gpu::GpuSurfaceTracker* tracker = gpu::GpuSurfaceTracker::Get();
if (window_) {
@@ -483,7 +481,7 @@ void CompositorImpl::SetSurface(jobject surface) {
ANativeWindow_acquire(window);
surface_handle_ = tracker->AddSurfaceForNativeWidget(window);
// Register first, SetVisible() might create a CompositorFrameSink.
- tracker->RegisterViewSurface(surface_handle_, j_surface);
+ tracker->RegisterViewSurface(surface_handle_, surface);
SetVisible(true);
ANativeWindow_release(window);
}
« no previous file with comments | « content/browser/media/android/browser_surface_view_manager.cc ('k') | gpu/ipc/common/gpu_surface_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698