summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_color_manager.cpp
diff options
context:
space:
mode:
authorArun Kumar K.R <akumarkr@codeaurora.org>2016-06-07 17:45:50 -0700
committerArun Kumar K.R <akumarkr@codeaurora.org>2016-06-08 14:16:26 -0700
commit8da7f503e1f7b8bfc27c507421b304e095604a68 (patch)
treef1655762eb0f76eca5a836ef906e5d3ccd5796f5 /sdm/libs/hwc2/hwc_color_manager.cpp
parent17bbd0486a7a1e3d7b1d8b05af8996d7c07e0204 (diff)
downloaddisplay-8da7f503e1f7b8bfc27c507421b304e095604a68.tar.gz
sdm: hwc2: Use mixer resolution
- Use SDM's mixer/FB interface to get the corresponding resolution and use in HWC2 - Support API to change layer mixer resolution Change-Id: I79b43e3d04d97fc7de1bc9df75dce2c955accafd Crs-fixed: 1026007
Diffstat (limited to 'sdm/libs/hwc2/hwc_color_manager.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_color_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_color_manager.cpp b/sdm/libs/hwc2/hwc_color_manager.cpp
index 0be9724a..89b49184 100644
--- a/sdm/libs/hwc2/hwc_color_manager.cpp
+++ b/sdm/libs/hwc2/hwc_color_manager.cpp
@@ -257,7 +257,7 @@ int HWCColorManager::CreateSolidFillLayers(HWCDisplay *hwc_display) {
uint32_t primary_width = 0;
uint32_t primary_height = 0;
- hwc_display->GetPanelResolution(&primary_width, &primary_height);
+ hwc_display->GetMixerResolution(&primary_width, &primary_height);
uint8_t *buf = new uint8_t[size]();
// handle for solid fill layer with fd = -1.
private_handle_t *handle = new private_handle_t(-1, 0, private_handle_t::PRIV_FLAGS_FRAMEBUFFER,