diff options
author | Mike Reed <reed@google.com> | 2017-07-12 08:40:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-12 13:19:35 +0000 |
commit | 6ee29658202a0bd8394df5daed8db30321c01cc9 (patch) | |
tree | 1efed95d65f841bbbe8006165f37d9f03a0c0972 /src/core/SkBitmapProcState_matrix_template.h | |
parent | 016eef47d78091bab7fbd6a445996f252e3283fc (diff) |
remove unreachable perspective code for imageshader
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD
Bug: skia:
Change-Id: If9a7df3e1c387098b00bf1cc1a37c36c6d256ef1
Reviewed-on: https://skia-review.googlesource.com/22348
Commit-Queue: Florin Malita <fmalita@chromium.org>
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 | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/SkBitmapProcState_matrix_template.h b/src/core/SkBitmapProcState_matrix_template.h index c38610a077..772c8622c5 100644 --- a/src/core/SkBitmapProcState_matrix_template.h +++ b/src/core/SkBitmapProcState_matrix_template.h @@ -98,26 +98,4 @@ void NoFilterProc_Affine(const SkBitmapProcState& s, uint32_t xy[], } } -template <typename TileProc> -void NoFilterProc_Persp(const SkBitmapProcState& s, uint32_t* SK_RESTRICT xy, - int count, int x, int y) { - SkASSERT(s.fInvType & SkMatrix::kPerspective_Mask); - - int maxX = s.fPixmap.width() - 1; - int maxY = s.fPixmap.height() - 1; - - SkPerspIter iter(s.fInvMatrix, - SkIntToScalar(x) + SK_ScalarHalf, - SkIntToScalar(y) + SK_ScalarHalf, count); - - while ((count = iter.next()) != 0) { - const SkFixed* SK_RESTRICT srcXY = iter.getXY(); - while (--count >= 0) { - *xy++ = (TileProc::Y(s, srcXY[1], maxY) << 16) | - TileProc::X(s, srcXY[0], maxX); - srcXY += 2; - } - } -} - #endif |