hwc: is_offscreen() should look at display frame, not source crop
authorGreg Hackmann <ghackmann@google.com>
Tue, 19 Feb 2013 18:17:18 +0000 (10:17 -0800)
committerGreg Hackmann <ghackmann@google.com>
Tue, 19 Feb 2013 18:17:18 +0000 (10:17 -0800)
Change-Id: I8cde6d6086caaf9e1363f5b2532315da811a1ae9
Signed-off-by: Greg Hackmann <ghackmann@google.com>
libhwc/hwc.cpp

index 20f3a1ddd85fee148b8852e10cb85a3292b7d397..f0050d0999f633cc2efcaf9d12c1ddc864c1eb1b 100644 (file)
@@ -770,10 +770,10 @@ err:
 bool exynos5_is_offscreen(hwc_layer_1_t &layer,
         struct exynos5_hwc_composer_device_1_t *pdev)
 {
-    return layer.sourceCrop.left > pdev->xres ||
-            layer.sourceCrop.right < 0 ||
-            layer.sourceCrop.top > pdev->yres ||
-            layer.sourceCrop.bottom < 0;
+    return layer.displayFrame.left > pdev->xres ||
+            layer.displayFrame.right < 0 ||
+            layer.displayFrame.top > pdev->yres ||
+            layer.displayFrame.bottom < 0;
 }
 
 size_t exynos5_visible_width(hwc_layer_1_t &layer, int format,