commit | 131b968f7bd998676b7eb3ceed50d5b4c4aee3a9 | [log] [tgz] |
---|---|---|
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 05 15:54:42 2013 +0000 |
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 05 15:54:42 2013 +0000 |
tree | 43764cea6c47de267f9fdf4fc0f5c9011b539f07 | |
parent | 6e0ba0286232b0c2d83e510b1d146a94783f3e8b [diff] |
Add SkRRect::transform. Much like SkPath::transform, it transforms an SkRRect based on an SkMatrix. Unlike SkPath::transform, it will fail for matrices that contain perspective or skewing. Required by a future change (https://codereview.chromium.org/48623006) to speed up drawing large blurry rounded rectangles by using ninepatches. TODO: This could easily support 90 degree rotations, if desired. BUG=https://b.corp.google.com/issue?id=11174385 R=reed@google.com, robertphillips@google.com Review URL: https://codereview.chromium.org/52703003 git-svn-id: http://skia.googlecode.com/svn/trunk/src@12132 2bbb7eff-a529-9590-31e7-b0007b416f81