Merge "fix a crasher in surfaceflinger"
This commit is contained in:
commit
b7f8310d9a
@ -227,8 +227,13 @@ void Layer::setPerFrameData(hwc_layer_t* hwcl) {
|
|||||||
} else {
|
} else {
|
||||||
hwcl->sourceCrop.left = 0;
|
hwcl->sourceCrop.left = 0;
|
||||||
hwcl->sourceCrop.top = 0;
|
hwcl->sourceCrop.top = 0;
|
||||||
hwcl->sourceCrop.right = buffer->width;
|
if (buffer != NULL) {
|
||||||
hwcl->sourceCrop.bottom = buffer->height;
|
hwcl->sourceCrop.right = buffer->width;
|
||||||
|
hwcl->sourceCrop.bottom = buffer->height;
|
||||||
|
} else {
|
||||||
|
hwcl->sourceCrop.right = mTransformedBounds.width();
|
||||||
|
hwcl->sourceCrop.bottom = mTransformedBounds.height();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user