@@ -984,7 +984,6 @@ public void onTrimMemory(int level) {
984984 static final int REQUEST_KEYBOARD = 118 ;
985985 static final int SHOW_FULLSCREEN = 120 ;
986986 static final int HIDE_FULLSCREEN = 121 ;
987- static final int REPLACE_BASE_CONTENT = 123 ;
988987 static final int UPDATE_MATCH_COUNT = 126 ;
989988 static final int CENTER_FIT_RECT = 127 ;
990989 static final int SET_SCROLLBAR_MODES = 129 ;
@@ -4232,14 +4231,8 @@ && nativeEvaluateLayersAnimations(mNativeClass)) {
42324231 df = mScrollFilter ;
42334232 }
42344233 canvas .setDrawFilter (df );
4235- // XXX: Revisit splitting content. Right now it causes a
4236- // synchronization problem with layers.
4237- int content = nativeDraw (canvas , mVisibleContentRect , mBackgroundColor ,
4238- extras , false );
4234+ nativeDraw (canvas , mVisibleContentRect , mBackgroundColor , extras );
42394235 canvas .setDrawFilter (null );
4240- if (!mBlockWebkitViewMessages && content != 0 ) {
4241- mWebViewCore .sendMessage (EventHub .SPLIT_PICTURE_SET , content , 0 );
4242- }
42434236 }
42444237
42454238 canvas .restoreToCount (saveCount );
@@ -7256,10 +7249,6 @@ public void handleMessage(Message msg) {
72567249 mZoomManager .updateDefaultZoomDensity (density );
72577250 break ;
72587251 }
7259- case REPLACE_BASE_CONTENT : {
7260- nativeReplaceBaseContent (msg .arg1 );
7261- break ;
7262- }
72637252 case NEW_PICTURE_MSG_ID : {
72647253 // called for new content
72657254 final WebViewCore .DrawData draw = (WebViewCore .DrawData ) msg .obj ;
@@ -8433,18 +8422,6 @@ public void setBackgroundColor(int color) {
84338422 public void debugDump () {
84348423 }
84358424
8436- /**
8437- * Draw the HTML page into the specified canvas. This call ignores any
8438- * view-specific zoom, scroll offset, or other changes. It does not draw
8439- * any view-specific chrome, such as progress or URL bars.
8440- *
8441- * only needs to be accessible to Browser and testing
8442- */
8443- public void drawPage (Canvas canvas ) {
8444- calcOurContentVisibleRectF (mVisibleContentRect );
8445- nativeDraw (canvas , mVisibleContentRect , 0 , 0 , false );
8446- }
8447-
84488425 /**
84498426 * Enable the communication b/t the webView and VideoViewProxy
84508427 *
@@ -8578,14 +8555,8 @@ private void postInvalidate() {
85788555 private native void nativeDebugDump ();
85798556 private native void nativeDestroy ();
85808557
8581- /**
8582- * Draw the picture set with a background color and extra. If
8583- * "splitIfNeeded" is true and the return value is not 0, the return value
8584- * MUST be passed to WebViewCore with SPLIT_PICTURE_SET message so that the
8585- * native allocation can be freed.
8586- */
8587- private native int nativeDraw (Canvas canvas , RectF visibleRect ,
8588- int color , int extra , boolean splitIfNeeded );
8558+ private native void nativeDraw (Canvas canvas , RectF visibleRect ,
8559+ int color , int extra );
85898560 private native void nativeDumpDisplayTree (String urlOrNull );
85908561 private native boolean nativeEvaluateLayersAnimations (int nativeInstance );
85918562 private native int nativeCreateDrawGLFunction (int nativeInstance , Rect rect ,
@@ -8599,7 +8570,6 @@ private native void nativeUpdateDrawGLFunction(int nativeInstance, Rect rect
85998570 private native boolean nativeSetBaseLayer (int nativeInstance ,
86008571 int layer , boolean showVisualIndicator , boolean isPictureAfterFirstLayout );
86018572 private native int nativeGetBaseLayer ();
8602- private native void nativeReplaceBaseContent (int content );
86038573 private native void nativeCopyBaseContentToPicture (Picture pict );
86048574 private native boolean nativeHasContent ();
86058575 private native void nativeStopGL ();
0 commit comments