diff options
author | 2012-08-02 15:08:22 -0700 | |
---|---|---|
committer | 2012-08-02 15:08:22 -0700 | |
commit | 6f3454be71a57e3fb57bced80cdd7f9fb51ae38c (patch) | |
tree | 2b77ed3821f6c1011ded30387607e124140afe2e /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | b3b14f50203f5ee101289fb21c4acbf67288c69f (diff) | |
parent | 908170017208ee2cf84d5857cb33e13b0443c919 (diff) | |
download | latinime-6f3454be71a57e3fb57bced80cdd7f9fb51ae38c.tar.gz latinime-6f3454be71a57e3fb57bced80cdd7f9fb51ae38c.tar.xz latinime-6f3454be71a57e3fb57bced80cdd7f9fb51ae38c.zip |
am 90817001: am fb955693: Enable hardware accelerated drawing for SoftInputWindow of LatinIME
* commit '908170017208ee2cf84d5857cb33e13b0443c919':
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 588d1592f..e49d68e07 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 |