In current code swapRect optimization is enabled for the use cases,
where only one layer is updating. this change will enable swapRect for
use cases where more than one layer is updating.
Change-Id: I902ecaa4ab53eac1115d5ea40c9cd582f639bfd8
In cases where we need to clear multiple regions we are
sending union of those regions in single call. Instead calling
clear for independent clear regions will help in achieving
performance gain by reducing time taken for solidFill.
Change-Id: I5dbd3532692042e7d408edd2d73193e68384af70
No need to clear a non updating region in case of swapRect.
Use dirtyRect value of updating layer to achieve this.
Before using dirtyRect value map it to respective displayFrame,
as dirtyRect is with respect to sourceCrop.
Change-Id: Ie5782a039f7075396e30405070f12ce2443c0a82
Check for planeAlpha value as well along with HWC_BLENDING_NONE
as the latter is set if layer is Opaque independent of planeAlpha.
Change-Id: I32a1a7da4d5efec7515e8e4faf77e00278580ff0
Right now clear is already being done in SF using GPU for
HWC_BLIT layers, no need to clear layers a second time.
Change-Id: Ie6ed6a2e7ad3b24fae6e6bfd81988c604f07eac1
For copybit cases we should clear wormhole region
rather than nonwormhole. Adding support to calculate
and clear the same.
Change-Id: Ie85d1b484174199e35f43ce95b30de1fac9c30b2