summaryrefslogtreecommitdiffstats
path: root/libs/hwui/ClipArea.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix clip area behavior for REPLACE opChris Craik2015-07-161-0/+2
| | | | | | | | | | bug:22291400 Work around clippath-clipped-to-view-bounds behavior by implementing REPLACE op fast path, avoiding the transition to SkRegion/SkPath. Change-Id: I63c1cf961db2d6e3759d83914de1036c9ac7497a
* Enter RectangleMode when the clip region is a rectangleTom Hudson2015-03-301-1/+1
| | | | | | | | | | | | | ClipArea's region mode implementation store the region's boundary in a rectangle, and if the region is that rectangle, set its region to empty. This is a bug, since as long as the ClipArea is in region mode it treats its region as determinitive. When the next clipping operation comes in, it is tested against the empty region instead of against the valid rect. Discovered via Skia GM testing. Change-Id: I3bbc4e81c8d68636061f830156e017e9b5c7e587
* Clipping performance improvementsRob Tsuk2015-01-141-0/+175
Create a ClipArea class to handle tracking clip regions. This class can select the most efficient implementation depending on the types of clipping presented. ClipArea re-used the rectangle and region-based clipping implementations as well as adding a "list of rotated rectangles" approach that is more efficient for rotated views with children. Change-Id: I2133761a2462ebc0852b394220e265974b3086f0