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
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 624cc68..7166a07 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -693,6 +693,10 @@
if (paint.getMaskFilter()) {
usePath = true;
}
+ // until we aa rotated rects...
+ if (!usePath && paint.isAntiAlias() && !draw.fMatrix->rectStaysRect()) {
+ usePath = true;
+ }
if (usePath) {
SkPath path;