Include all tests, enlarge labels
Need to expand the size of highcontrastcolorfilter gm, to show all cases.
Also enlarge labels so they can be read.
Change-Id: I8f9278e7ce2f06a9a6921d70f1f38dc18f9023d7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/279336
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/gm/highcontrastfilter.cpp b/gm/highcontrastfilter.cpp
index dc5a039..552a062 100644
--- a/gm/highcontrastfilter.cpp
+++ b/gm/highcontrastfilter.cpp
@@ -39,9 +39,9 @@
char labelBuffer[256];
const char* invertStr =
(config.fInvertStyle == InvertStyle::kInvertBrightness ?
- "InvBrightness" :
+ "InvBright" :
(config.fInvertStyle == InvertStyle::kInvertLightness ?
- "InvLightness" : "NoInvert"));
+ "InvLight" : "NoInvert"));
snprintf(labelBuffer, sizeof(labelBuffer), "%s%s contrast=%.1f",
config.fGrayscale ? "Gray " : "",
@@ -50,8 +50,8 @@
SkFont font;
font.setTypeface(ToolUtils::create_portable_typeface());
- font.setSize(0.05f);
- font.setEdging(SkFont::Edging::kAlias);
+ font.setSize(0.075f);
+ font.setEdging(SkFont::Edging::kAntiAlias);
size_t len = strlen(labelBuffer);
@@ -129,7 +129,7 @@
}
SkISize onISize() override {
- return SkISize::Make(600, 420);
+ return SkISize::Make(800, 420);
}
void onDraw(SkCanvas* canvas) override {