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

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: rebase 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 4fec77255df85dacf8a91af3eb7680c947548c2a..ed694b7c8146447b244ace1ac31595d57b84b485 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 primaryId, int secondaryId) {
+ if (mCallback == null) {
+ Log.e(TAG, "No callback interface has been provided.");
+ return null;
+ }
+
+ try {
+ return mCallback.getSurfaceTextureSurface(primaryId, secondaryId);
+ } 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}
« no previous file with comments | « content/content_common.gypi ('k') | content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698