Hwc : Calculate copybit destination rect properly in PTOR
When the layer destination rect is not transformed properly on target
render buffer location of that PTOR layer, it results in corruption
on the PTOR layer. This corruption is observed when the overlapping
region of any below layer different from PTOR display frame.
To fix this, destination rect for copybit is calculated as follows:
i. Find the intersection of layer display frame with PTOR layer
with respect to screen co-ordinates
ii. Calculated the destination rect by transforming the overlapping
region of layer display frame with respect to PTOR display frame
iii. Transform the destination rect on to render buffer
Change-Id: I9468e194ac87de4e3d37f7b1df90bfa6473a1921
1 file changed