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

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

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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..f5f3a819caca3ce09afbe111b78f0dc9323669fc 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
@@ -285,6 +285,22 @@ public class ChildProcessService extends Service {
}
}
+ @SuppressWarnings("unused")
+ @CalledByNative
+ private Surface getSurfaceTextureSurface(int surfaceTextureId) {
+ if (mCallback == null) {
+ Log.e(TAG, "No callback interface has been provided.");
+ return null;
+ }
+
+ try {
+ return mCallback.getSurfaceTextureSurface(surfaceTextureId);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Unable to call getSurfaceTextureSurface: " + e);
+ return null;
+ }
+ }
+
/**
* The main entry point for a child process. This should be called from a new thread since
* it will not return until the child process exits. See child_process_service.{h,cc}

Powered by Google App Engine
This is Rietveld 408576698