diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-07-28 14:11:49 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-28 14:11:49 -0700 |
commit | 857a4439d6875ac209ea2d0b37d777849b7be507 (patch) | |
tree | 06240f8283fe52ca385e7ee9834c3d34dc1a8cab /sdm | |
parent | 01c40da9686fd4f091edfdc3a8d8e41f5b469d02 (diff) | |
parent | 443530272a60ea1e19695e3ceccba6c3c0d022c5 (diff) | |
download | android_hardware_qcom_sdm710_display-857a4439d6875ac209ea2d0b37d777849b7be507.tar.gz android_hardware_qcom_sdm710_display-857a4439d6875ac209ea2d0b37d777849b7be507.tar.bz2 android_hardware_qcom_sdm710_display-857a4439d6875ac209ea2d0b37d777849b7be507.zip |
Merge "hwc: Use HWC for videos with non-integral source crop"
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 ebcf23fe..5c3841f0 100644 --- a/sdm/libs/hwc2/hwc_display.cpp +++ b/sdm/libs/hwc2/hwc_display.cpp @@ -497,11 +497,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 @@ -544,7 +546,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; } |