|
17 | 17 | package android.webkit; |
18 | 18 |
|
19 | 19 | import android.annotation.Widget; |
| 20 | +import android.app.ActivityManager; |
20 | 21 | import android.app.AlertDialog; |
21 | 22 | import android.content.BroadcastReceiver; |
22 | 23 | import android.content.ClipboardManager; |
|
61 | 62 | import android.util.AttributeSet; |
62 | 63 | import android.util.EventLog; |
63 | 64 | import android.util.Log; |
| 65 | +import android.view.Display; |
64 | 66 | import android.view.Gravity; |
65 | 67 | import android.view.HapticFeedbackConstants; |
66 | 68 | import android.view.HardwareCanvas; |
|
77 | 79 | import android.view.ViewGroup; |
78 | 80 | import android.view.ViewParent; |
79 | 81 | import android.view.ViewTreeObserver; |
| 82 | +import android.view.WindowManager; |
80 | 83 | import android.view.accessibility.AccessibilityEvent; |
81 | 84 | import android.view.accessibility.AccessibilityManager; |
82 | 85 | import android.view.accessibility.AccessibilityNodeInfo; |
@@ -8455,7 +8458,11 @@ public void handleMessage(Message msg) { |
8455 | 8458 | // nativeCreate sets mNativeClass to a non-zero value |
8456 | 8459 | String drawableDir = BrowserFrame.getRawResFilename( |
8457 | 8460 | BrowserFrame.DRAWABLEDIR, mContext); |
8458 | | - nativeCreate(msg.arg1, drawableDir); |
| 8461 | + WindowManager windowManager = |
| 8462 | + (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE); |
| 8463 | + Display display = windowManager.getDefaultDisplay(); |
| 8464 | + nativeCreate(msg.arg1, drawableDir, |
| 8465 | + ActivityManager.isHighEndGfx(display)); |
8459 | 8466 | if (mDelaySetPicture != null) { |
8460 | 8467 | setNewPicture(mDelaySetPicture, true); |
8461 | 8468 | mDelaySetPicture = null; |
@@ -9484,7 +9491,7 @@ public float tileProfilingGetFloat(int frame, int tile, String key) { |
9484 | 9491 | private native Rect nativeCacheHitNodeBounds(); |
9485 | 9492 | private native int nativeCacheHitNodePointer(); |
9486 | 9493 | /* package */ native void nativeClearCursor(); |
9487 | | - private native void nativeCreate(int ptr, String drawableDir); |
| 9494 | + private native void nativeCreate(int ptr, String drawableDir, boolean isHighEndGfx); |
9488 | 9495 | private native int nativeCursorFramePointer(); |
9489 | 9496 | private native Rect nativeCursorNodeBounds(); |
9490 | 9497 | private native int nativeCursorNodePointer(); |
|
0 commit comments