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