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

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

Issue 26753005: Adding compositor callbacks to RenderWidgetHostViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb compositor provider through instead of compositor Created 7 years, 1 month 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/ContentViewRenderView.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
index 3c7f70bbfed632537eb6bbe7851df3f8718ac582..892b8243ac533aa4d47c1030f9e9c1cd87082de0 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
@@ -25,7 +25,7 @@ import org.chromium.content.common.TraceEvent;
* Note that only one ContentView can be shown at a time.
*/
@JNINamespace("content")
-public class ContentViewRenderView extends FrameLayout {
+public class ContentViewRenderView extends FrameLayout implements CompositorProvider {
private static final int MAX_SWAP_BUFFER_COUNT = 2;
// The native side of this object.
@@ -290,6 +290,10 @@ public class ContentViewRenderView extends FrameLayout {
}
}
+ public int getNativeCompositorProvider() {
+ return nativeGetNativeCompositorProviderPtr(mNativeContentViewRenderView);
+ }
+
private native int nativeInit();
private native void nativeDestroy(int nativeContentViewRenderView);
private native void nativeSetCurrentContentView(int nativeContentViewRenderView,
@@ -300,4 +304,5 @@ public class ContentViewRenderView extends FrameLayout {
int width, int height);
private native boolean nativeComposite(int nativeContentViewRenderView);
private native boolean nativeCompositeToBitmap(int nativeContentViewRenderView, Bitmap bitmap);
+ private native int nativeGetNativeCompositorProviderPtr(int nativeContentViewRenderView);
}

Powered by Google App Engine
This is Rietveld 408576698