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_shaderproc.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_shaderproc.h')
-rw-r--r-- | src/core/SkBitmapProcState_shaderproc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBitmapProcState_shaderproc.h b/src/core/SkBitmapProcState_shaderproc.h index 1ff2e6bf24..5324456145 100644 --- a/src/core/SkBitmapProcState_shaderproc.h +++ b/src/core/SkBitmapProcState_shaderproc.h @@ -32,7 +32,7 @@ void SCALE_FILTER_NAME(const void* sIn, int x, int y, SkPMColor* SK_RESTRICT col { const SkBitmapProcStateAutoMapper mapper(s, x, y); - SkFixed fy = SkFractionalIntToFixed(mapper.y()); + SkFixed fy = mapper.fixedY(); const unsigned maxY = s.fPixmap.height() - 1; // compute our two Y values up front subY = TILEY_LOW_BITS(fy, maxY); @@ -44,7 +44,7 @@ void SCALE_FILTER_NAME(const void* sIn, int x, int y, SkPMColor* SK_RESTRICT col row0 = (const SRCTYPE*)(srcAddr + y0 * rb); row1 = (const SRCTYPE*)(srcAddr + y1 * rb); // now initialize fx - fx = SkFractionalIntToFixed(mapper.x()); + fx = mapper.fixedX(); } #ifdef PREAMBLE |