libqdutils::Use qcomuiClearRegion for dynamic composition

Change-Id: I7483f6967c6f712af15031c386fb08c8fdae0808
This commit is contained in:
Ramakant Singh 2012-08-28 12:24:11 +05:30 committed by Andrew Sutherland
parent 4d8c72e306
commit 77e0c7b380

View File

@ -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;
}