From 77e0c7b380371ac86b3d1dbbdace9bdf7b0ef94d Mon Sep 17 00:00:00 2001 From: Ramakant Singh Date: Tue, 28 Aug 2012 12:24:11 +0530 Subject: [PATCH] libqdutils::Use qcomuiClearRegion for dynamic composition Change-Id: I7483f6967c6f712af15031c386fb08c8fdae0808 --- libqdutils/clear_regions.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libqdutils/clear_regions.h b/libqdutils/clear_regions.h index 5bed692..2d1f3df 100644 --- a/libqdutils/clear_regions.h +++ b/libqdutils/clear_regions.h @@ -46,9 +46,8 @@ static int qcomuiClearRegion(Region region, EGLDisplay dpy){ int ret = 0; int compositionType = QCCompositionType::getInstance().getCompositionType(); - if (compositionType == (COMPOSITION_TYPE_DYN|COMPOSITION_TYPE_C2D)){ - // For DYN comp. with C2D, return an error, so that SF can use - // the GPU to draw the wormhole. + if (compositionType == COMPOSITION_TYPE_GPU){ + //SF can use the GPU to draw the wormhole. return -1; }