Merge "Update currentConfig variable when active display is changed." into lmp-dev

This commit is contained in:
Michael Lentine 2014-08-22 16:34:13 +00:00 committed by Android (Google) Code Review
commit eb21986df0

View 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 {