From 27774b1a66e1f77b5f7915f17ae5365e79a4be27 Mon Sep 17 00:00:00 2001 From: Naomi Luis Date: Tue, 6 Dec 2011 12:22:16 -0800 Subject: [PATCH] libhwcomposer: Set the Framebuffer info for copybit composition. Invoke copybit's set parameter call to set the framebuffer width and height. Change-Id: I735772e21b9fead48686fac3371b6b93156ece8a --- libhwcomposer/hwcomposer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index 6905453..298dc3c 100755 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -1039,6 +1039,8 @@ static int drawLayerUsingCopybit(hwc_composer_device_t *dev, hwc_layer_t *layer, region_iterator copybitRegion(region); copybit_device_t *copybit = hwcModule->copybitEngine; + copybit->set_parameter(copybit, COPYBIT_FRAMEBUFFER_WIDTH, renderBuffer->width); + copybit->set_parameter(copybit, COPYBIT_FRAMEBUFFER_HEIGHT, renderBuffer->height); copybit->set_parameter(copybit, COPYBIT_TRANSFORM, layer->transform); copybit->set_parameter(copybit, COPYBIT_PLANE_ALPHA, (layer->blending == HWC_BLENDING_NONE) ? 0xFF : layer->alpha);