diff options
| author | 2014-08-12 18:17:45 +0000 | |
|---|---|---|
| committer | 2014-08-12 18:13:56 +0000 | |
| commit | 015cb5dc71b653db9eb61aaa3798df485df47ed9 (patch) | |
| tree | a24379c35a8c67370c12cbd13af4b81815652987 | |
| parent | bab0111ef0405da35bab4cee29a209dbba37a6f3 (diff) | |
| parent | 1dd0e0fae2135a0aaf8c9f3686e70d3544597bec (diff) | |
Merge "Don't use libhwui to draw starting window" into lmp-dev
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index a326aad2a776..4d35509c2108 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -701,8 +701,13 @@ public final class ViewRootImpl implements ViewParent, final boolean forceHwAccelerated = (attrs.privateFlags & WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_HARDWARE_ACCELERATED) != 0; - if (!HardwareRenderer.sRendererDisabled || (HardwareRenderer.sSystemRendererDisabled - && forceHwAccelerated)) { + if (fakeHwAccelerated) { + // This is exclusively for the preview windows the window manager + // shows for launching applications, so they will look more like + // the app being launched. + mAttachInfo.mHardwareAccelerationRequested = true; + } else if (!HardwareRenderer.sRendererDisabled + || (HardwareRenderer.sSystemRendererDisabled && forceHwAccelerated)) { if (mAttachInfo.mHardwareRenderer != null) { mAttachInfo.mHardwareRenderer.destroy(); } @@ -714,13 +719,6 @@ public final class ViewRootImpl implements ViewParent, mAttachInfo.mHardwareAccelerated = mAttachInfo.mHardwareAccelerationRequested = true; } - } else if (fakeHwAccelerated) { - // The window had wanted to use hardware acceleration, but this - // is not allowed in its process. By setting this flag, it can - // still render as if it was accelerated. This is basically for - // the preview windows the window manager shows for launching - // applications, so they will look more like the app being launched. - mAttachInfo.mHardwareAccelerationRequested = true; } } } |