fix initialization of framebuffer target crop rect on hwc 1.3
Bug: 10936771 Change-Id: If283e5e231ca34b93e0b1784bb4e8e4c7bfd75de
This commit is contained in:
parent
d555684cb3
commit
8f63c2049b
@ -524,7 +524,14 @@ status_t HWComposer::createWorkList(int32_t id, size_t numLayers) {
|
|||||||
disp.framebufferTarget->handle = disp.fbTargetHandle;
|
disp.framebufferTarget->handle = disp.fbTargetHandle;
|
||||||
disp.framebufferTarget->transform = 0;
|
disp.framebufferTarget->transform = 0;
|
||||||
disp.framebufferTarget->blending = HWC_BLENDING_PREMULT;
|
disp.framebufferTarget->blending = HWC_BLENDING_PREMULT;
|
||||||
disp.framebufferTarget->sourceCrop = r;
|
if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) {
|
||||||
|
disp.framebufferTarget->sourceCropf.left = 0;
|
||||||
|
disp.framebufferTarget->sourceCropf.top = 0;
|
||||||
|
disp.framebufferTarget->sourceCropf.right = disp.width;
|
||||||
|
disp.framebufferTarget->sourceCropf.bottom = disp.height;
|
||||||
|
} else {
|
||||||
|
disp.framebufferTarget->sourceCrop = r;
|
||||||
|
}
|
||||||
disp.framebufferTarget->displayFrame = r;
|
disp.framebufferTarget->displayFrame = r;
|
||||||
disp.framebufferTarget->visibleRegionScreen.numRects = 1;
|
disp.framebufferTarget->visibleRegionScreen.numRects = 1;
|
||||||
disp.framebufferTarget->visibleRegionScreen.rects =
|
disp.framebufferTarget->visibleRegionScreen.rects =
|
||||||
|
Loading…
Reference in New Issue
Block a user