From 49f32e10cb859541dcad22f6c0e9b4464b60d4fe Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Tue, 24 May 2011 18:03:49 -0700 Subject: [PATCH] libhwcomposer: Use layer alpha value Set the copybit plane alpha equal to the layer alpha value. Change-Id: Idcb5a23cc5e99061ddd31a3da7bedda2867d579d CRs-fixed: 288257 --- libhwcomposer/hwcomposer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index afea6d4..5eefc66 100755 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -336,7 +336,7 @@ static int drawLayerUsingCopybit(hwc_composer_device_t *dev, hwc_layer_t *layer, copybit_device_t *copybit = hwcModule->copybitEngine; copybit->set_parameter(copybit, COPYBIT_TRANSFORM, layer->transform); - copybit->set_parameter(copybit, COPYBIT_PLANE_ALPHA, 0xFF); + copybit->set_parameter(copybit, COPYBIT_PLANE_ALPHA, layer->alpha); copybit->set_parameter(copybit, COPYBIT_PREMULTIPLIED_ALPHA, (layer->blending == HWC_BLENDING_PREMULT)? COPYBIT_ENABLE : COPYBIT_DISABLE); int err = copybit->stretch(copybit, &dst, &src, &dstRect, &srcRect, ©bitRegion);