only check for nearly-integral if we're a BW clip

git-svn-id: http://skia.googlecode.com/svn/trunk@3915 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-05-11 18:46:43 +00:00
parent 3d8cd175e1
commit 420f74fa72

View File

@ -161,7 +161,7 @@ static bool is_integral(SkScalar x) {
bool SkRasterClip::op(const SkRect& r, SkRegion::Op op, bool doAA) {
AUTO_RASTERCLIP_VALIDATE(*this);
if (doAA) {
if (fIsBW && doAA) {
// check that the rect really needs aa
if (is_integral(r.fLeft) && is_integral(r.fTop) &&
is_integral(r.fRight) && is_integral(r.fBottom)) {