draw rotated rects as paths if we're antialiasing, until we extend our rect-aa

code to handle that case.



git-svn-id: http://skia.googlecode.com/svn/trunk@1430 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-05-26 11:46:35 +00:00
parent e70e400bac
commit 67db6644ab

View File

@ -693,6 +693,10 @@ void SkGpuDevice::drawRect(const SkDraw& draw, const SkRect& rect,
if (paint.getMaskFilter()) {
usePath = true;
}
// until we aa rotated rects...
if (!usePath && paint.isAntiAlias() && !draw.fMatrix->rectStaysRect()) {
usePath = true;
}
if (usePath) {
SkPath path;