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

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

Issue 59673007: Android: moves content/ to use long for JNI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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..3855eb9d336b3312bb945f2cad5882edda202078 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
@@ -29,7 +29,7 @@ public class ContentViewRenderView extends FrameLayout {
private static final int MAX_SWAP_BUFFER_COUNT = 2;
// The native side of this object.
- private int mNativeContentViewRenderView;
+ private long mNativeContentViewRenderView;
private final SurfaceHolder.Callback mSurfaceCallback;
private SurfaceView mSurfaceView;
@@ -290,14 +290,14 @@ public class ContentViewRenderView extends FrameLayout {
}
}
- private native int nativeInit();
- private native void nativeDestroy(int nativeContentViewRenderView);
- private native void nativeSetCurrentContentView(int nativeContentViewRenderView,
- int nativeContentView);
- private native void nativeSurfaceCreated(int nativeContentViewRenderView, Surface surface);
- private native void nativeSurfaceDestroyed(int nativeContentViewRenderView);
- private native void nativeSurfaceSetSize(int nativeContentViewRenderView,
+ private native long nativeInit();
+ private native void nativeDestroy(long nativeContentViewRenderView);
+ private native void nativeSetCurrentContentView(long nativeContentViewRenderView,
+ long nativeContentView);
+ private native void nativeSurfaceCreated(long nativeContentViewRenderView, Surface surface);
+ private native void nativeSurfaceDestroyed(long nativeContentViewRenderView);
+ private native void nativeSurfaceSetSize(long nativeContentViewRenderView,
int width, int height);
- private native boolean nativeComposite(int nativeContentViewRenderView);
- private native boolean nativeCompositeToBitmap(int nativeContentViewRenderView, Bitmap bitmap);
+ private native boolean nativeComposite(long nativeContentViewRenderView);
+ private native boolean nativeCompositeToBitmap(long nativeContentViewRenderView, Bitmap bitmap);
}

Powered by Google App Engine
This is Rietveld 408576698