Remove blur from text labels in tilemodes* GMs

https://codereview.chromium.org/23617003/



git-svn-id: http://skia.googlecode.com/svn/trunk@11021 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-08-30 12:41:42 +00:00
parent 772c4e6d09
commit 6db2ae21a3

View File

@ -56,11 +56,9 @@ static const SkBitmap::Config gConfigs[] = {
};
class TilingGM : public skiagm::GM {
SkBlurDrawLooper fLooper;
public:
TilingGM(bool powerOfTwoSize)
: fLooper(SkIntToScalar(1), SkIntToScalar(2), SkIntToScalar(2), 0x88000000)
, fPowerOfTwoSize(powerOfTwoSize) {
: fPowerOfTwoSize(powerOfTwoSize) {
}
SkBitmap fTexture[SK_ARRAY_COUNT(gConfigs)];
@ -112,7 +110,6 @@ protected:
SkString str;
p.setAntiAlias(true);
p.setDither(true);
p.setLooper(&fLooper);
str.printf("[%s,%s]", gModeNames[kx], gModeNames[ky]);
p.setTextAlign(SkPaint::kCenter_Align);
@ -151,7 +148,6 @@ protected:
SkPaint p;
SkString str;
p.setAntiAlias(true);
p.setLooper(&fLooper);
str.printf("%s, %s", gConfigNames[i], gFilterNames[j]);
canvas->drawText(str.c_str(), str.size(), x, y + r.height() * 2 / 3, p);
}