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

Unified Diff: content/app/android/child_process_service.cc

Issue 1567193002: Add GpuSurfaceLookup::AcquireJavaSurface for AVDA on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiler warning; remove std::move Created 4 years, 11 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_surface_lookup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | content/common/gpu/gpu_surface_lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698