diff options
author | Naseer Ahmed <naseer@codeaurora.org> | 2018-07-18 14:55:00 -0400 |
---|---|---|
committer | Naseer Ahmed <naseer@codeaurora.org> | 2018-07-18 15:14:35 -0400 |
commit | 443530272a60ea1e19695e3ceccba6c3c0d022c5 (patch) | |
tree | 9f48e167dc70f535f9c4438175620d15de1763ac /sdm | |
parent | 91f0c3962ae387ea88ad2ce09d2febe51af55bcc (diff) | |
download | android_hardware_qcom_sdm710_display-443530272a60ea1e19695e3ceccba6c3c0d022c5.tar.gz android_hardware_qcom_sdm710_display-443530272a60ea1e19695e3ceccba6c3c0d022c5.tar.bz2 android_hardware_qcom_sdm710_display-443530272a60ea1e19695e3ceccba6c3c0d022c5.zip |
hwc: Use HWC for videos with non-integral source crop
Change-Id: I2b2f525278219f24f48894d04db891871215a017
CRs-Fixed: 2281150
Diffstat (limited to 'sdm')
-rw-r--r-- | sdm/libs/hwc2/hwc_display.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<const private_handle_t *>(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; } |