aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2018-06-12 12:46:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-15 16:04:45 +0000
commitd2b5084d972d3742e725d6d87d0ece9ea4e5ae9e (patch)
treea7f9f7dbb1bdfc06b4d18e56777daf6f04a9ccad /gm
parent4f6ba2e522bcc3f84c02c9b7dd834b9b5476968b (diff)
Change scaling of antialiased perspective text in dftext to help glitches.
Bug: skia: Change-Id: I499c04949ddd957404cda6b34ab0073b539f6dd3 Reviewed-on: https://skia-review.googlesource.com/133582 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gm')
-rw-r--r--gm/dftext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index ae57aa8eb2..1fbb131ad8 100644
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -191,8 +191,7 @@ protected:
0.0002352f, -0.0003844f, 1);
canvas->concat(persp);
canvas->translate(1100, -295);
- canvas->scale(375, 375);
- paint.setTextSize(0.1f);
+ paint.setTextSize(37.5f);
canvas->drawText(text, textLen, 0, 0, paint);
}
{