libhwcomposer: Set the Framebuffer info for copybit composition.
Invoke copybit's set parameter call to set the framebuffer width and height. Change-Id: I735772e21b9fead48686fac3371b6b93156ece8a
This commit is contained in:
parent
c2e6b1f62e
commit
27774b1a66
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user