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:
parent
772c4e6d09
commit
6db2ae21a3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user