@@ -594,11 +594,6 @@ protected void exitFullscreenVideo() {
594594 private native int nativeRecordContent (int nativeClass , Region invalRegion ,
595595 Point wh );
596596
597- /**
598- * Update the layers' content
599- */
600- private native boolean nativeUpdateLayers (int nativeClass , int baseLayer );
601-
602597 /**
603598 * Notify webkit that animations have begun (on the hardware accelerated content)
604599 */
@@ -1115,9 +1110,6 @@ public class EventHub {
11151110 // Load and save web archives
11161111 static final int SAVE_WEBARCHIVE = 147 ;
11171112
1118- // Update layers
1119- static final int WEBKIT_DRAW_LAYERS = 148 ;
1120-
11211113 static final int REMOVE_JS_INTERFACE = 149 ;
11221114
11231115 // Network-based messaging
@@ -1266,10 +1258,6 @@ public void handleMessage(Message msg) {
12661258 webkitDraw ();
12671259 break ;
12681260
1269- case WEBKIT_DRAW_LAYERS :
1270- webkitDrawLayers ();
1271- break ;
1272-
12731261 case DESTROY :
12741262 // Time to take down the world. Cancel all pending
12751263 // loads and destroy the native view and frame.
@@ -2148,7 +2136,6 @@ void splitContent(int content) {
21482136
21492137 // Used to avoid posting more than one draw message.
21502138 private boolean mDrawIsScheduled ;
2151- private boolean mDrawLayersIsScheduled ;
21522139
21532140 // Used to avoid posting more than one split picture message.
21542141 private boolean mSplitPictureIsScheduled ;
@@ -2194,25 +2181,6 @@ static class DrawData {
21942181
21952182 DrawData mLastDrawData = null ;
21962183
2197- // Only update the layers' content, not the base surface
2198- // PictureSet.
2199- private void webkitDrawLayers () {
2200- mDrawLayersIsScheduled = false ;
2201- if (mDrawIsScheduled || mLastDrawData == null ) {
2202- removeMessages (EventHub .WEBKIT_DRAW );
2203- webkitDraw ();
2204- return ;
2205- }
2206- // Directly update the layers we last passed to the UI side
2207- if (nativeUpdateLayers (mNativeClass , mLastDrawData .mBaseLayer )) {
2208- // If anything more complex than position has been touched, let's do a full draw
2209- webkitDraw ();
2210- }
2211- mWebViewClassic .mPrivateHandler .removeMessages (WebViewClassic .INVAL_RECT_MSG_ID );
2212- mWebViewClassic .mPrivateHandler .sendMessageAtFrontOfQueue (mWebViewClassic .mPrivateHandler
2213- .obtainMessage (WebViewClassic .INVAL_RECT_MSG_ID ));
2214- }
2215-
22162184 private Boolean m_skipDrawFlag = false ;
22172185 private boolean m_drawWasSkipped = false ;
22182186
@@ -2388,15 +2356,6 @@ private void restoreState(int index) {
23882356 }
23892357 }
23902358
2391- // called from JNI
2392- void layersDraw () {
2393- synchronized (this ) {
2394- if (mDrawLayersIsScheduled ) return ;
2395- mDrawLayersIsScheduled = true ;
2396- mEventHub .sendMessage (Message .obtain (null , EventHub .WEBKIT_DRAW_LAYERS ));
2397- }
2398- }
2399-
24002359 // called by JNI
24012360 private void contentScrollTo (int x , int y , boolean animate ,
24022361 boolean onlyIfImeIsShowing ) {
0 commit comments