vppvirtualdisplay: Ifdef HWC_SCREENSHOT_ANIMATOR_LAYER
authorChristopher N. Hesse <raymanfx@gmail.com>
Sat, 11 Nov 2017 12:20:45 +0000 (13:20 +0100)
committerJan Altensen <info@stricted.net>
Sun, 5 Apr 2020 01:02:42 +0000 (03:02 +0200)
Change-Id: Ia4bf7820b742739e39f2f183c9dd1de983601dc7

libvppvirtualdisplay/ExynosVirtualDisplay.cpp

index a2404b1ac7a9d950633016873663678697599f29..18d306595d414b7a91d947cbc4816c29fd0aad67 100644 (file)
@@ -604,6 +604,7 @@ void ExynosVirtualDisplay::determineYuvOverlay(hwc_display_contents_1_t *content
     }
 #endif
 
+#ifdef HWC_SCREENSHOT_ANIMATOR_LAYER
     /* find rotation animation layer */
     for (size_t i = 0; i < contents->numHwLayers; i++) {
         hwc_layer_1_t &layer = contents->hwLayers[i];
@@ -614,6 +615,7 @@ void ExynosVirtualDisplay::determineYuvOverlay(hwc_display_contents_1_t *content
             return;
         }
     }
+#endif
 
     private_handle_t *outBufHandle = private_handle_t::dynamicCast(contents->outbuf);
     if (outBufHandle == NULL) {