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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 12443003: Implement out-of-band video compositing on Android: Step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698