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

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: rebase 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 55a73840c144fd3003e72b8e8c561765bdf31557..0ecee71b94aa7a52280e0ee4dfcac6dd6c570379 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
@@ -18,6 +18,7 @@ import android.widget.FrameLayout;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.content.common.TraceEvent;
+import org.chromium.ui.base.WindowAndroid;
/***
* This view is used by a ContentView to render its content.
@@ -53,10 +54,10 @@ public class ContentViewRenderView extends FrameLayout {
* Native code should add/remove the layers to be rendered through the ContentViewLayerRenderer.
* @param context The context used to create this.
*/
- public ContentViewRenderView(Context context) {
+ public ContentViewRenderView(Context context, WindowAndroid rootWindow) {
super(context);
-
- mNativeContentViewRenderView = nativeInit();
+ assert rootWindow != null;
+ mNativeContentViewRenderView = nativeInit(rootWindow.getNativePointer());
assert mNativeContentViewRenderView != 0;
setBackgroundColor(Color.WHITE);
@@ -289,7 +290,7 @@ public class ContentViewRenderView extends FrameLayout {
}
}
- private native long nativeInit();
+ private native long nativeInit(long rootWindowNativePointer);
private native void nativeDestroy(long nativeContentViewRenderView);
private native void nativeSetCurrentContentView(long nativeContentViewRenderView,
long nativeContentView);
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/public/browser/android/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698