commit | 5fe58b8ba6c5d78481730874236a1be48a90d61d | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu Feb 07 16:22:50 2013 -0800 |
committer | Mathias Agopian <mathias@google.com> | Thu Feb 07 16:22:50 2013 -0800 |
tree | c3e5d0b845c61d6de70984831e76fe4cd48459a8 | |
parent | 9f8386e1118c10dd4927f62637ec7162569bdbdc [diff] [blame] |
only disable hwc when alpha < 1.0 Bug: 8149181 Change-Id: Ib3c7a44f04871e020adceeae16d002141ac758d4
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp index 8e73467..ead158e 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -808,7 +808,9 @@ if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) { getLayer()->planeAlpha = alpha; } else { - getLayer()->flags |= HWC_SKIP_LAYER; + if (alpha < 0xFF) { + getLayer()->flags |= HWC_SKIP_LAYER; + } } } virtual void setDefaultState() {