From 8da7f503e1f7b8bfc27c507421b304e095604a68 Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Tue, 7 Jun 2016 17:45:50 -0700 Subject: 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 --- sdm/libs/hwc2/hwc_color_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdm/libs/hwc2/hwc_color_manager.cpp') 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, -- cgit v1.2.3