add #ifdef SK_DISABLE_FAST_AA_STROKE_RECT to disable new 8x faster antialiased
stroked rects, since it draws slightly different (more correct) pixels, for
clients that want pixel compatibility.



git-svn-id: http://skia.googlecode.com/svn/trunk@1043 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp
index 604155a..68a0e4d 100644
--- a/src/core/SkDraw.cpp
+++ b/src/core/SkDraw.cpp
@@ -718,6 +718,11 @@
     } else if (zeroWidth) {
         rtype = kHair_RectType;
     } else if (easy_rect_join(paint)) {
+#ifdef SK_DISABLE_FAST_AA_STROKE_RECT
+        if (paint.isAntiAlias()) {
+            rtype = kPath_RectType;
+        } else
+#endif
         rtype = kStroke_RectType;
     } else {
         rtype = kPath_RectType;