diff options
author | fmalita <fmalita@chromium.org> | 2016-02-03 10:21:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-03 10:21:33 -0800 |
commit | be5cfa9a9e1cfb77beba27727df7149ab5e7d422 (patch) | |
tree | 60f0cea20012e6137b29a762ff50ba29403a99a3 /src/core/SkBitmapProcState.h | |
parent | 513d30726373909fbb1cd4b3734348494638abcd (diff) |
Rename SkBitmapProcStateAutoMapper methods
x(),y() -> fractionalIntX(), fractionalIntY()
(to clarify the return type)
Also add fixed & int helpers.
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1666433003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/1666433003
Diffstat (limited to 'src/core/SkBitmapProcState.h')
-rw-r--r-- | src/core/SkBitmapProcState.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/SkBitmapProcState.h b/src/core/SkBitmapProcState.h index fca7dc0a3e..a006e090b5 100644 --- a/src/core/SkBitmapProcState.h +++ b/src/core/SkBitmapProcState.h @@ -220,8 +220,14 @@ public: } } - SkFractionalInt x() const { return fX; } - SkFractionalInt y() const { return fY; } + SkFractionalInt fractionalIntX() const { return fX; } + SkFractionalInt fractionalIntY() const { return fY; } + + SkFixed fixedX() const { return SkFractionalIntToFixed(fX); } + SkFixed fixedY() const { return SkFractionalIntToFixed(fY); } + + int intX() const { return SkFractionalIntToInt(fX); } + int intY() const { return SkFractionalIntToInt(fY); } private: SkFractionalInt fX, fY; |