OSDN Git Service

Update currentConfig variable when active display is changed.
authorMichael Lentine <mlentine@google.com>
Thu, 21 Aug 2014 21:43:13 +0000 (14:43 -0700)
committerMichael Lentine <mlentine@google.com>
Thu, 21 Aug 2014 21:43:13 +0000 (14:43 -0700)
Bug: 17182607
Change-Id: I8631c105a9e0fa402a7d9670717becc9857af935

services/surfaceflinger/DisplayHardware/HWComposer.cpp

index 53409d1..e67b2e7 100644 (file)
@@ -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 {