From d82ad20ecb7f5873d2e743faac5211b953ed77c4 Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Tue, 24 Jul 2012 13:49:47 -0700 Subject: [PATCH] hwc: skip layers flagged with HWC_SKIP_LAYER Change-Id: Ibaab3b002ee2e891a8fa8c43b88b06059d1e2a38 Signed-off-by: Greg Hackmann --- libhwc/hwc.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp index 5fb5bbc..d876096 100644 --- a/libhwc/hwc.cpp +++ b/libhwc/hwc.cpp @@ -267,6 +267,11 @@ static int hdmi_output(struct exynos5_hwc_composer_device_1_t *dev, private_hand bool exynos5_supports_overlay(hwc_layer_1_t &layer, size_t i) { + if (layer.flags & HWC_SKIP_LAYER) { + ALOGV("\tlayer %u: skipping", i); + return false; + } + private_handle_t *handle = private_handle_t::dynamicCast(layer.handle); if (!handle) { @@ -477,7 +482,8 @@ static int exynos5_prepare(hwc_composer_device_1_t *dev, hwc_layer_list_1_t* lis for (size_t i = 0; i < list->numHwLayers; i++) { dump_layer(&list->hwLayers[i]); - if(list->hwLayers[i].handle) + if(list->hwLayers[i].handle && + !(list->hwLayers[i].flags & HWC_SKIP_LAYER)) dump_handle(private_handle_t::dynamicCast( list->hwLayers[i].handle)); } -- 2.20.1