diff options
author | benjaminwagner <benjaminwagner@google.com> | 2016-03-07 12:41:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-07 12:41:49 -0800 |
commit | 19de504eaee0c18cac4f840e0ca336a1e41b65eb (patch) | |
tree | 0875adecd2e69c88c75af05984fa80ffb444288b /src/core/SkGlyph.h | |
parent | d7b2885b90c6d248d8188cdb3720ea9150568a89 (diff) |
Add advance[XY]Fixed getters for Android.
This prepares for changing the type of these fields to float.
BUG=skia:4632
Review URL: https://codereview.chromium.org/1772863002
Diffstat (limited to 'src/core/SkGlyph.h')
-rw-r--r-- | src/core/SkGlyph.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkGlyph.h b/src/core/SkGlyph.h index f9b94a0268..0bccf6b4ce 100644 --- a/src/core/SkGlyph.h +++ b/src/core/SkGlyph.h @@ -94,6 +94,11 @@ public: return rb; } + SK_ATTR_DEPRECATED("Temporary accessor for Android.") + SkFixed advanceXFixed() const { return fAdvanceX; } + SK_ATTR_DEPRECATED("Temporary accessor for Android.") + SkFixed advanceYFixed() const { return fAdvanceY; } + unsigned rowBytes() const { return ComputeRowBytes(fWidth, (SkMask::Format)fMaskFormat); } |