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
This commit is contained in:
parent
7ff678bc16
commit
5bff8d2030
@ -718,6 +718,11 @@ void SkDraw::drawRect(const SkRect& rect, const SkPaint& paint) const {
|
||||
} 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;
|
||||
|
Loading…
Reference in New Issue
Block a user