From 19de504eaee0c18cac4f840e0ca336a1e41b65eb Mon Sep 17 00:00:00 2001 From: benjaminwagner Date: Mon, 7 Mar 2016 12:41:49 -0800 Subject: [PATCH] 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 --- src/core/SkGlyph.h | 5 +++++ 1 file changed, 5 insertions(+) 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); }