hwc: is_offscreen() should look at display frame, not source crop

Change-Id: I8cde6d6086caaf9e1363f5b2532315da811a1ae9
Signed-off-by: Greg Hackmann <ghackmann@google.com>
diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp
index 20f3a1d..f0050d0 100644
--- a/libhwc/hwc.cpp
+++ b/libhwc/hwc.cpp
@@ -770,10 +770,10 @@
 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,