diff options
author | Mike Reed <reed@google.com> | 2017-08-23 01:26:59 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-23 12:41:35 +0000 |
commit | dc03ddeb7e716ca871f9ca6a3b3ffb0ce6caa548 (patch) | |
tree | 2a9a22c6c0daab6611c4cfc1fc0066cf518ce70d /src/core/SkBitmapProcState_matrix_template.h | |
parent | 5141d215e068c630dacc8865ffb46efd7f0f3911 (diff) |
remove code associated with legacy affine imageshaders
requires https://skia-review.googlesource.com/c/33180
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD
Bug: skia:
Change-Id: I226e120cc5aebe393bda8bc069e7927fdc981a0e
Reviewed-on: https://skia-review.googlesource.com/36800
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core/SkBitmapProcState_matrix_template.h')
-rw-r--r-- | src/core/SkBitmapProcState_matrix_template.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/core/SkBitmapProcState_matrix_template.h b/src/core/SkBitmapProcState_matrix_template.h index 772c8622c5..4ee7a75bf5 100644 --- a/src/core/SkBitmapProcState_matrix_template.h +++ b/src/core/SkBitmapProcState_matrix_template.h @@ -70,32 +70,4 @@ void NoFilterProc_Scale(const SkBitmapProcState& s, uint32_t xy[], } } -// note: we could special-case on a matrix which is skewed in X but not Y. -// this would require a more general setup thatn SCALE does, but could use -// SCALE's inner loop that only looks at dx - -template <typename TileProc> -void NoFilterProc_Affine(const SkBitmapProcState& s, uint32_t xy[], - int count, int x, int y) { - SkASSERT(s.fInvType & SkMatrix::kAffine_Mask); - SkASSERT((s.fInvType & ~(SkMatrix::kTranslate_Mask | - SkMatrix::kScale_Mask | - SkMatrix::kAffine_Mask)) == 0); - - const SkBitmapProcStateAutoMapper mapper(s, x, y); - - SkFractionalInt fx = mapper.fractionalIntX(); - SkFractionalInt fy = mapper.fractionalIntY(); - SkFractionalInt dx = s.fInvSxFractionalInt; - SkFractionalInt dy = s.fInvKyFractionalInt; - int maxX = s.fPixmap.width() - 1; - int maxY = s.fPixmap.height() - 1; - - for (int i = count; i > 0; --i) { - *xy++ = (TileProc::Y(s, SkFractionalIntToFixed(fy), maxY) << 16) | - TileProc::X(s, SkFractionalIntToFixed(fx), maxX); - fx += dx; fy += dy; - } -} - #endif |