From 443530272a60ea1e19695e3ceccba6c3c0d022c5 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Wed, 18 Jul 2018 14:55:00 -0400 Subject: hwc: Use HWC for videos with non-integral source crop Change-Id: I2b2f525278219f24f48894d04db891871215a017 CRs-Fixed: 2281150 --- sdm/libs/hwc2/hwc_display.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sdm') diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp index 22097222..06e693ee 100644 --- a/sdm/libs/hwc2/hwc_display.cpp +++ b/sdm/libs/hwc2/hwc_display.cpp @@ -490,11 +490,13 @@ void HWCDisplay::BuildLayerStack() { } bool is_secure = false; + bool is_video = false; const private_handle_t *handle = reinterpret_cast(layer->input_buffer.buffer_id); if (handle) { if (handle->buffer_type == BUFFER_TYPE_VIDEO) { layer_stack_.flags.video_present = true; + is_video = true; } // TZ Protected Buffer - L1 // Gralloc Usage Protected Buffer - L3 - which needs to be treated as Secure & avoid fallback @@ -537,7 +539,7 @@ void HWCDisplay::BuildLayerStack() { layer_stack_.flags.hdr_present = true; } - if (hwc_layer->IsNonIntegralSourceCrop() && !is_secure) { + if (hwc_layer->IsNonIntegralSourceCrop() && !is_secure && !is_video) { layer->flags.skip = true; } -- cgit v1.2.3