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

Unified Diff: content/public/android/java/src/org/chromium/content/app/ChildProcessService.java

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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/public/android/java/src/org/chromium/content/app/ChildProcessService.java
diff --git a/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java b/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
index 769249ed095bc6568d765df6237b0e1407bba312..f25432c7a9e00600a530b7bc01af2c8b4dda5527 100644
--- a/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
+++ b/content/public/android/java/src/org/chromium/content/app/ChildProcessService.java
@@ -104,6 +104,12 @@ public class ChildProcessService extends Service {
}
return Process.myPid();
}
+
+ @Override
+ public void setupSurfaceTexture(long gpu_memory_buffer, Surface surface) {
+ Log.i(TAG, "nativeSetupSurfaceTexture pid=" + Process.myPid());
+ nativeSetupSurfaceTexture(gpu_memory_buffer, surface);
+ }
};
/* package */ static Context getContext() {
@@ -304,5 +310,7 @@ public class ChildProcessService extends Service {
*/
private static native void nativeExitChildProcess();
+ private static native void nativeSetupSurfaceTexture(long gpu_memory_buffer, Surface surface);
+
private native void nativeShutdownMainThread();
}

Powered by Google App Engine
This is Rietveld 408576698