diff options
author | bungeman <bungeman@google.com> | 2016-02-25 07:07:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-25 07:07:32 -0800 |
commit | fa5e5c75218a877d30177d08686d8ec0ea050b0a (patch) | |
tree | 94028a3a8d58a8aca1818b0a7c0cc6e99594fad8 /src/core/SkFindAndPlaceGlyph.h | |
parent | 50fe38e72a65a8b2ae8de05249781f2b3fbfdbba (diff) |
Use kSubpixelRounding in one missed location.
The kSubpixelRounding macro was created to clarify a block of code,
but one simplification was missed.
Review URL: https://codereview.chromium.org/1733843002
Diffstat (limited to 'src/core/SkFindAndPlaceGlyph.h')
-rw-r--r-- | src/core/SkFindAndPlaceGlyph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkFindAndPlaceGlyph.h b/src/core/SkFindAndPlaceGlyph.h index c74a9820e4..78a02c0e4d 100644 --- a/src/core/SkFindAndPlaceGlyph.h +++ b/src/core/SkFindAndPlaceGlyph.h @@ -367,7 +367,7 @@ private: static SkPoint SubpixelPositionRounding(SkAxisAlignment axisAlignment) { switch (axisAlignment) { case kX_SkAxisAlignment: - return {SkFixedToScalar(SkGlyph::kSubpixelRound), SK_ScalarHalf}; + return {kSubpixelRounding, SK_ScalarHalf}; case kY_SkAxisAlignment: return {SK_ScalarHalf, kSubpixelRounding}; case kNone_SkAxisAlignment: |