aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2018-06-07 11:30:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-07 16:41:11 +0000
commit8345aa6302c7ca25a4b9c2df913e83ef79220ab7 (patch)
tree15ff4f74f0fa75f5d2b51cf5b45a363551870887
parentdc636203f44bdbcd8b93f1d615a3adeaa486f21c (diff)
Change persp dftext to only antialiased
Originally I had aliased text in here because I thought it would trigger the bug, but it doesn't and it's a bad idea for perspective text. Changed it to a reasonably large size just to get another test case. Bug: skia:8042 Change-Id: Ia81161063c76431e04503349ad6b33afb7523605 Reviewed-on: https://skia-review.googlesource.com/132833 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
-rw-r--r--gm/dftext.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index ab8d1e6840..828cdbba10 100644
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -194,8 +194,6 @@ protected:
canvas->drawText(text, textLen, 0, 0, paint);
}
{
- paint.setSubpixelText(false);
- paint.setAntiAlias(false);
SkAutoCanvasRestore acr(canvas, true);
SkMatrix persp;
persp.setAll(0.9839f, 0, 0,
@@ -203,8 +201,7 @@ protected:
0.0002352f, -0.0003844f, 1);
canvas->concat(persp);
canvas->translate(1075, -245);
- canvas->scale(375, 375);
- paint.setTextSize(0.1f);
+ paint.setTextSize(37.5f);
canvas->drawText(text, textLen, 0, 0, paint);
}