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

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

Issue 2285593002: Add ScopedSurfaceRequestManager (Closed)
Patch Set: Added RunUntilIdle() to 2 UTs Created 4 years, 3 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/ChildProcessServiceImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java b/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
index 9bf884aacb964ac2d13909bea8318d3136412df4..a43219c6a6a8b542b2aecc01f00275b604cbf664 100644
--- a/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
+++ b/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java
@@ -369,6 +369,27 @@ public class ChildProcessServiceImpl {
@SuppressWarnings("unused")
@CalledByNative
+ private void forwardSurfaceTextureForSurfaceRequest(
+ long requestTokenHigh, long requestTokenLow, SurfaceTexture surfaceTexture) {
+ if (mCallback == null) {
+ Log.e(TAG, "No callback interface has been provided.");
+ return;
+ }
+
+ Surface surface = new Surface(surfaceTexture);
+
+ try {
+ mCallback.forwardSurfaceForSurfaceRequest(requestTokenHigh, requestTokenLow, surface);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Unable to call forwardSurfaceForSurfaceRequest: %s", e);
+ return;
+ } finally {
+ surface.release();
+ }
+ }
+
+ @SuppressWarnings("unused")
+ @CalledByNative
private Surface getViewSurface(int surfaceId) {
if (mCallback == null) {
Log.e(TAG, "No callback interface has been provided.");

Powered by Google App Engine
This is Rietveld 408576698