aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGlyph.h
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-03-07 12:41:49 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-07 12:41:49 -0800
commit19de504eaee0c18cac4f840e0ca336a1e41b65eb (patch)
tree0875adecd2e69c88c75af05984fa80ffb444288b /src/core/SkGlyph.h
parentd7b2885b90c6d248d8188cdb3720ea9150568a89 (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.h5
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);
}