diff options
author | 2012-08-01 23:36:14 -0700 | |
---|---|---|
committer | 2012-08-01 23:36:14 -0700 | |
commit | 908170017208ee2cf84d5857cb33e13b0443c919 (patch) | |
tree | 60445a8d7179d851de8ba539ff8dacdfc8143bad /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 1b562db5c93cafa3e96071ee2ba1de07b21de418 (diff) | |
parent | fb955693d4bb0c8d39092250a4208e385b8a31a7 (diff) | |
download | latinime-908170017208ee2cf84d5857cb33e13b0443c919.tar.gz latinime-908170017208ee2cf84d5857cb33e13b0443c919.tar.xz latinime-908170017208ee2cf84d5857cb33e13b0443c919.zip |
am fb955693: Enable hardware accelerated drawing for SoftInputWindow of LatinIME
* commit 'fb955693d4bb0c8d39092250a4208e385b8a31a7':
Enable hardware accelerated drawing for SoftInputWindow of LatinIME
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 30edd2052..8dc1081f5 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -60,6 +60,7 @@ import com.android.inputmethod.accessibility.AccessibilityUtils; import com.android.inputmethod.accessibility.AccessibleKeyboardViewProxy; import com.android.inputmethod.compat.CompatUtils; import com.android.inputmethod.compat.InputMethodManagerCompatWrapper; +import com.android.inputmethod.compat.InputMethodServiceCompatUtils; import com.android.inputmethod.compat.SuggestionSpanUtils; import com.android.inputmethod.keyboard.KeyDetector; import com.android.inputmethod.keyboard.Keyboard; @@ -175,6 +176,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private AlertDialog mOptionsDialog; + private final boolean mIsHardwareAcceleratedDrawingEnabled; + public final UIHandler mHandler = new UIHandler(this); public static class UIHandler extends StaticInnerHandlerWrapper<LatinIME> { @@ -347,6 +350,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen super(); mSubtypeSwitcher = SubtypeSwitcher.getInstance(); mKeyboardSwitcher = KeyboardSwitcher.getInstance(); + mIsHardwareAcceleratedDrawingEnabled = + InputMethodServiceCompatUtils.enableHardwareAcceleration(this); + Log.i(TAG, "Hardware accelerated drawing: " + mIsHardwareAcceleratedDrawingEnabled); } @Override |