fix mac build errors related to new gm

Review URL: https://codereview.chromium.org/22937005

git-svn-id: http://skia.googlecode.com/svn/trunk@10690 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
djsollen@google.com 2013-08-13 14:48:09 +00:00
parent d4236574cf
commit 2b1155ac0d

View File

@ -81,7 +81,7 @@ protected:
}
virtual uint32_t onGetFlags() SK_OVERRIDE const { return kSkipPicture_Flag; }
virtual uint32_t onGetFlags() const SK_OVERRIDE { return kSkipPicture_Flag; }
private:
void drawTestPattern(int x, int y, SkCanvas* canvas,
@ -95,7 +95,7 @@ private:
canvas->clipPath(fPath);
}
if (doScale) {
canvas->scale(0.5, 0.5);
canvas->scale(SkDoubleToScalar(0.5), SkDoubleToScalar(0.5));
}
canvas->restore();
canvas->drawRect(fFillRect, fFillPaint);