| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index f7d3c4b2c9f8d1921c2d2169076dba0472f71796..585709d0b83a7a7527349612624aece9bff7586c 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -2556,6 +2556,22 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
|
| return mRenderCoordinates;
|
| }
|
|
|
| + /**
|
| + * Notify the native object about creation of external video surface.
|
| + * @param surface The external video surface object
|
| + */
|
| + public void externalVideoSurfaceCreated(Surface surface) {
|
| + nativeExternalVideoSurfaceCreated(mNativeContentViewCore, surface);
|
| + }
|
| +
|
| + /**
|
| + * Notify the native object about destruction of external video surface.
|
| + * @param surface The external video surface object
|
| + */
|
| + public void externalVideoSurfaceDestroyed(Surface surface) {
|
| + nativeExternalVideoSurfaceDestroyed(mNativeContentViewCore);
|
| + }
|
| +
|
| private native int nativeInit(boolean hardwareAccelerated, boolean inputEventsDeliveredAtVSync,
|
| int webContentsPtr, int windowAndroidPtr);
|
|
|
| @@ -2719,4 +2735,9 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
|
| int nativeContentViewCoreImpl, boolean enable);
|
|
|
| private native void nativeShowImeIfNeeded(int nativeContentViewCoreImpl);
|
| +
|
| + private native void nativeExternalVideoSurfaceCreated(int nativeContentViewCoreImpl,
|
| + Surface surface);
|
| +
|
| + private native void nativeExternalVideoSurfaceDestroyed(int nativeContentViewCoreImpl);
|
| }
|
|
|