diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-26 11:46:35 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-26 11:46:35 +0000 |
commit | 67db6644ab692748b421f48fedf759b67019e8ef (patch) | |
tree | 2bf665f5d049bec0c624b0dac03bca33d558665c /src/gpu | |
parent | e70e400bac1ee4c9743c1f0c3c7444e0f3c35bfc (diff) |
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
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 624cc68987..7166a07f51 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -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; |