remove funkster from dcshader gm
The multicolored font that funster enables only draws and measures on some platforms. Removing it from the dcshader gm allows the layout to be uniform on all devices, making it easier to compare the output in gold. TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1231853004
This commit is contained in:
parent
7e797dff24
commit
001ceb7e1b
@ -217,18 +217,6 @@ protected:
|
||||
virtual const char* text() const { return "Hello, Skia!"; }
|
||||
};
|
||||
|
||||
struct BmpText : public Text {
|
||||
void setFont(SkPaint* paint) override {
|
||||
if (!fTypeface) {
|
||||
fTypeface.reset(GetResourceAsTypeface("/fonts/Funkster.ttf"));
|
||||
}
|
||||
paint->setTypeface(fTypeface);
|
||||
}
|
||||
|
||||
const char* text() const override { return "Hi, Skia!"; }
|
||||
|
||||
SkAutoTUnref<SkTypeface> fTypeface;
|
||||
};
|
||||
fPrims.push_back(SkNEW(Rect));
|
||||
fPrims.push_back(SkNEW(Circle));
|
||||
fPrims.push_back(SkNEW(RRect));
|
||||
@ -238,7 +226,6 @@ protected:
|
||||
fPrims.push_back(SkNEW(Points(SkCanvas::kLines_PointMode)));
|
||||
fPrims.push_back(SkNEW(Points(SkCanvas::kPolygon_PointMode)));
|
||||
fPrims.push_back(SkNEW(Text));
|
||||
fPrims.push_back(SkNEW(BmpText));
|
||||
}
|
||||
|
||||
void onDraw(SkCanvas* canvas) override {
|
||||
|
Loading…
Reference in New Issue
Block a user