aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorRoman Stratiienko <roman.o.stratiienko@globallogic.com>2022-01-11 19:18:34 +0200
committerRoman Stratiienko <roman.o.stratiienko@globallogic.com>2022-02-02 12:57:32 +0200
commit3dacd47d13e3b739cf6909a23b9a5f40152e5eea (patch)
treef43fd0c28e18c221003c452cdb22126d72ba8fec /backend
parent19c162fe790ce9da373686512f451c6ed276bca8 (diff)
downloaddrm_hwcomposer-3dacd47d13e3b739cf6909a23b9a5f40152e5eea.tar.gz
drm_hwcomposer: Dynamic DrmDisplayPipeline to HwcDisplay bindings
The following use scenarios are now possible: 1. When no display connected, primary HwcDisplay is created in headless mode. 2. When user connects first display, it binds to primary slot, replacing headless HwcDisplay. 3. When user connects another display it binds to the new HwcDisplay slot, creating new display for the framework. 4. When user disconnects first (Primary) display, drm_hwc detaches second display and attaches it to the Primary slot. In this case framework is notified as Primary display resolution updated (Plugged->Plugged transition). And second display is disconnected (Plugged->Unplugged transition). DrmDisplayPipeline is now created on demand (after hotplug event). HwcDisplay class is now destructed on connector unplug, which will give us ability to destroy any resource caches (will be required for FB caching logic). Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
Diffstat (limited to 'backend')
-rw-r--r--backend/Backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/Backend.cpp b/backend/Backend.cpp
index 7d82eef..d707192 100644
--- a/backend/Backend.cpp
+++ b/backend/Backend.cpp
@@ -86,7 +86,7 @@ bool Backend::IsClientLayer(HwcDisplay *display, HwcLayer *layer) {
!BufferInfoGetter::GetInstance()->IsHandleUsable(layer->GetBuffer()) ||
display->color_transform_hint() != HAL_COLOR_TRANSFORM_IDENTITY ||
(layer->RequireScalingOrPhasing() &&
- display->resource_manager()->ForcedScalingWithGpu());
+ display->GetHwc2()->GetResMan().ForcedScalingWithGpu());
}
bool Backend::HardwareSupportsLayerType(HWC2::Composition comp_type) {