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

Unified Diff: content/browser/android/child_process_launcher_android.cc

Issue 2268173002: Add StreamTexture resgistration for the Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/android/child_process_launcher_android.cc
diff --git a/content/browser/android/child_process_launcher_android.cc b/content/browser/android/child_process_launcher_android.cc
index d3e8ee589ef18186b95e8061c41e73e07cb11a59..266991193e866b0fbaca3d8103dcf825e6014593 100644
--- a/content/browser/android/child_process_launcher_android.cc
+++ b/content/browser/android/child_process_launcher_android.cc
@@ -281,6 +281,15 @@ gl::ScopedJavaSurface GetSurfaceTextureSurface(int surface_texture_id,
.obj());
}
+gl::ScopedJavaSurface GetBrowserSurfaceTextureSurface(int surface_texture_id) {
+ JNIEnv* env = AttachCurrentThread();
+ DCHECK(env);
+ return gl::ScopedJavaSurface::AcquireExternalSurface(
+ Java_ChildProcessLauncher_getBrowserSurfaceTextureSurface(
+ env, surface_texture_id)
+ .obj());
+}
+
jboolean IsSingleProcess(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSingleProcess);

Powered by Google App Engine
This is Rietveld 408576698