diff options
author | Michael Lentine <mlentine@google.com> | 2014-08-22 16:34:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-22 16:34:14 +0000 |
commit | eb21986df0429d63f5e9678741730f07f17dcbad (patch) | |
tree | 56c08b54c9d2a7958d5518bff77fcc59acc80ce4 /services/surfaceflinger/DisplayHardware | |
parent | c597b6dd895dbb2b28c757ce7a2651b3cdc9b00c (diff) | |
parent | d3e6914ceaafebaee09b0095aad6d001b75e787a (diff) | |
download | frameworks_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
Diffstat (limited to 'services/surfaceflinger/DisplayHardware')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/HWComposer.cpp | 2 |
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 { |