Index: content/app/android/child_process_service.cc |
diff --git a/content/app/android/child_process_service.cc b/content/app/android/child_process_service.cc |
index 8ede667095fecc71c10af32c983c6f3794e54319..3627eba8877e0e8ecf08435adc4558983b04e85f 100644 |
--- a/content/app/android/child_process_service.cc |
+++ b/content/app/android/child_process_service.cc |
@@ -123,6 +123,14 @@ class SurfaceTextureManagerImpl : public SurfaceTextureManager, |
return native_window; |
} |
+ // Overridden from GpuSurfaceLookup: |
+ gfx::ScopedJavaSurface AcquireJavaSurface(int surface_id) override { |
+ JNIEnv* env = base::android::AttachCurrentThread(); |
+ return gfx::ScopedJavaSurface( |
+ content::Java_ChildProcessService_getViewSurface(env, service_.obj(), |
+ surface_id)); |
+ } |
+ |
private: |
// The instance of org.chromium.content.app.ChildProcessService. |
base::android::ScopedJavaGlobalRef<jobject> service_; |