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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 12041009: [Android WebView] Migrate the rendering code to a separate set of classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698