diff options
author | Michael Lentine <mlentine@google.com> | 2014-08-21 14:43:13 -0700 |
---|---|---|
committer | Michael Lentine <mlentine@google.com> | 2014-08-21 14:43:13 -0700 |
commit | d3e6914ceaafebaee09b0095aad6d001b75e787a (patch) | |
tree | 4dffd22cb219313638924bddba927d795f9f2ebe /services/surfaceflinger/DisplayHardware | |
parent | d4548dd0272f5a4edee1d7ff070458728848b35c (diff) | |
download | frameworks_native-d3e6914ceaafebaee09b0095aad6d001b75e787a.zip frameworks_native-d3e6914ceaafebaee09b0095aad6d001b75e787a.tar.gz frameworks_native-d3e6914ceaafebaee09b0095aad6d001b75e787a.tar.bz2 |
Update currentConfig variable when active display is changed.
Bug: 17182607
Change-Id: I8631c105a9e0fa402a7d9670717becc9857af935
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 53409d1..e67b2e7 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 { |