diff options
author | John Reck <jreck@google.com> | 2014-03-27 22:09:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-27 22:09:49 +0000 |
commit | 9eaf763aa89a96e503000069f04b6569b4ad66b0 (patch) | |
tree | 743bcae93fbb7621c7554b34b394e0dffbe40a43 | |
parent | 891a1f343dd0a2cdfd904fcf4a1eb0e1538c2183 (diff) | |
parent | 2a0901107443685ef2f2a55d0b62ddcc6cf183ba (diff) | |
download | frameworks_base-9eaf763aa89a96e503000069f04b6569b4ad66b0.zip frameworks_base-9eaf763aa89a96e503000069f04b6569b4ad66b0.tar.gz frameworks_base-9eaf763aa89a96e503000069f04b6569b4ad66b0.tar.bz2 |
Merge "Force-enable hardware acceleration for apps"
-rw-r--r-- | core/java/android/view/ViewRootImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index e0e523e..fd85df9 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -678,13 +678,13 @@ public final class ViewRootImpl implements ViewParent, mAttachInfo.mHardwareAccelerationRequested = false; // Don't enable hardware acceleration when the application is in compatibility mode - if (mTranslator != null) return; + if (false && mTranslator != null) return; // Try to enable hardware acceleration if requested final boolean hardwareAccelerated = (attrs.flags & WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0; - if (hardwareAccelerated) { + if (true || hardwareAccelerated) { if (!HardwareRenderer.isAvailable()) { return; } |