hwc: Use HWC for videos with non-integral source crop

Bug: 110937377
Change-Id: I2b2f525278219f24f48894d04db891871215a017
CRs-Fixed: 2281150
diff --git a/composer/hwc_display.cpp b/composer/hwc_display.cpp
index 9618ba9..438263c 100644
--- a/composer/hwc_display.cpp
+++ b/composer/hwc_display.cpp
@@ -710,11 +710,13 @@
     }
 
     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
@@ -750,7 +752,7 @@
     }
 
     if (hwc_layer->IsNonIntegralSourceCrop() && !is_secure && !hdr_layer &&
-        !layer->flags.single_buffer && !layer->flags.solid_fill) {
+        !layer->flags.single_buffer && !layer->flags.solid_fill && !is_video) {
       layer->flags.skip = true;
     }