hwc2: Add support to set powerstate asynchronously.
-- Create dummy displays for all displays that support async update.
-- Map real and dummy displays as part of HWC Init.
-- Upon call from client route all calls to dummy displays. This includes
layerstack operations ie; create, destroy, get/set params etc.
-- Post powerstate, get the current layerstack from dummy display
and update it onto real display.
Change-Id: Ib6ab3b31e28cbc9f609933eaece940a6b9eee3ba
CRs-Fixed: 2449460
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp
index eaf5dea..40a3ac3 100644
--- a/composer/hwc_display_builtin.cpp
+++ b/composer/hwc_display_builtin.cpp
@@ -940,7 +940,12 @@
if (ret != kErrorNone) {
return HWC2::Error::NoResources;
}
+ return HWC2::Error::None;
+}
+HWC2::Error HWCDisplayBuiltIn::UpdatePowerMode(HWC2::PowerMode mode) {
+ current_power_mode_ = mode;
+ validated_ = false;
return HWC2::Error::None;
}