summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lentine <mlentine@google.com>2014-08-22 16:34:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-22 16:34:14 +0000
commiteb21986df0429d63f5e9678741730f07f17dcbad (patch)
tree56c08b54c9d2a7958d5518bff77fcc59acc80ce4
parentc597b6dd895dbb2b28c757ce7a2651b3cdc9b00c (diff)
parentd3e6914ceaafebaee09b0095aad6d001b75e787a (diff)
downloadframeworks_native-eb21986df0429d63f5e9678741730f07f17dcbad.zip
frameworks_native-eb21986df0429d63f5e9678741730f07f17dcbad.tar.gz
frameworks_native-eb21986df0429d63f5e9678741730f07f17dcbad.tar.bz2
Merge "Update currentConfig variable when active display is changed." into lmp-dev
-rw-r--r--services/surfaceflinger/DisplayHardware/HWComposer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
index bd07d24..a8dcf98 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -780,6 +780,8 @@ status_t HWComposer::setPowerMode(int disp, int mode) {
status_t HWComposer::setActiveConfig(int disp, int mode) {
LOG_FATAL_IF(disp >= VIRTUAL_DISPLAY_ID_BASE);
+ DisplayData& dd(mDisplayData[disp]);
+ dd.currentConfig = mode;
if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_4)) {
return (status_t)mHwc->setActiveConfig(mHwc, disp, mode);
} else {