Index: android_webview/java/src/org/chromium/android_webview/AwContents.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
index 10235d3682e72e1a5ab2fdb69ce1644bc1fa4653..c4cb0f1fdb2b36a93f7d2051b47be2a605b6c0d1 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
@@ -303,8 +303,8 @@ public class AwContents { |
public int getAwDrawGLViewContext() { |
// Using the native pointer as the returned viewContext. This is matched by the |
- // reinterpret_cast back to AwContents pointer in the native DrawGLFunction. |
- return mNativeAwContents; |
+ // reinterpret_cast back to AwRenderer pointer in the native DrawGLFunction. |
joth
2013/01/21 22:54:24
what's AwRenderer ?
Leandro GraciĆ” Gil
2013/01/22 08:18:46
Good catch. That was my first temporary name for t
|
+ return nativeGetAwDrawGLViewContext(mNativeAwContents); |
} |
public boolean onPrepareDrawGL(Canvas canvas) { |
@@ -949,7 +949,6 @@ public class AwContents { |
private native void nativeSetInterceptNavigationDelegate(int nativeAwContents, |
InterceptNavigationDelegate navigationInterceptionDelegate); |
- private native boolean nativeDrawSW(int nativeAwContents, Canvas canvas); |
private native void nativeSetScrollForHWFrame(int nativeAwContents, int scrollX, int scrollY); |
private native int nativeFindAllSync(int nativeAwContents, String searchString); |
private native void nativeFindAllAsync(int nativeAwContents, String searchString); |
@@ -974,4 +973,11 @@ public class AwContents { |
private native int nativeReleasePopupWebContents(int nativeAwContents); |
private native void nativeSetWebContents(int nativeAwContents, int nativeNewWebContents); |
private native void nativeFocusFirstNode(int nativeAwContents); |
+ |
+ private native boolean nativeDrawSW(int nativeAwContents, Canvas canvas, int clipX, int clipY, |
+ int clipW, int clipH); |
+ private native int nativeGetAwDrawGLViewContext(int nativeAwContents); |
+ private native Picture nativeCapturePicture(int nativeAwContents); |
+ private native void nativeEnableOnNewPicture(int nativeAwContents, boolean enabled, |
+ boolean invalidationOnly); |
} |