| 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.");
|
|
|