diff options
author | Jim Van Verth <jvanverth@google.com> | 2018-06-07 19:54:17 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-07 19:54:22 +0000 |
commit | 4ba1a6f0bf75749beae0308e7be08f334268c79d (patch) | |
tree | f334b16ebe9c480d085bc47c9e3efb7abe37f621 /gm | |
parent | 4d3f517282b90250026ca61ed8846092b9fbf604 (diff) |
Revert "Change persp dftext to only antialiased"
This reverts commit 8345aa6302c7ca25a4b9c2df913e83ef79220ab7.
Reason for revert: Causing inexplicable test failures.
Original change's description:
> 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>
TBR=jvanverth@google.com,robertphillips@google.com
Change-Id: Ieec8fad7733a6ea435b2b211d5718c65cc263cbb
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:8042
Reviewed-on: https://skia-review.googlesource.com/133040
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/dftext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp index 828cdbba10..ab8d1e6840 100644 --- a/gm/dftext.cpp +++ b/gm/dftext.cpp @@ -194,6 +194,8 @@ 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, @@ -201,7 +203,8 @@ protected: 0.0002352f, -0.0003844f, 1); canvas->concat(persp); canvas->translate(1075, -245); - paint.setTextSize(37.5f); + canvas->scale(375, 375); + paint.setTextSize(0.1f); canvas->drawText(text, textLen, 0, 0, paint); } |