From 1e5e65ae871b8506e771976f80e2ce78542c03ee Mon Sep 17 00:00:00 2001 From: Neti Ravi Kumar Date: Thu, 16 Feb 2012 11:27:53 +0530 Subject: [PATCH] libhwcomposer: Avoid overlay specific code for non-overlay targets (cherry picked from commit baeb7668e20e4513fd6d7e6e211555a3c17195b8) Change-Id: I2a6f49d364aa4fac11ec950bf7fc88ecff7afdbb --- libhwcomposer/hwcomposer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index 053aa11..fa89544 100644 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -198,6 +198,7 @@ static void setHWCOverlayStatus(hwc_context_t *ctx, bool isVideoPresent) { } static int hwc_closeOverlayChannels(hwc_context_t* ctx) { +#ifdef USE_OVERLAY overlay::Overlay *ovLibObject = ctx->mOverlayLibObject; if(!ovLibObject) { LOGE("%s: invalid params", __FUNCTION__); @@ -212,6 +213,7 @@ static int hwc_closeOverlayChannels(hwc_context_t* ctx) { // Inform the gralloc that video overlay has stopped. setVideoOverlayStatusInGralloc(ctx, false); } +#endif return 0; }