aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/opts
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-06-06 09:18:28 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-06 13:41:19 +0000
commit1608a1dd17187aeeada376e710ecfafb1e229af2 (patch)
tree960761a4bc519634ab58a78d151b94275e09f90f /src/opts
parentf4a5fc7af06e71d03b967416fa6a11e59184e62f (diff)
remove unused xfermode methods
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD Bug: skia: Change-Id: Ibc7d581bcc40134ee7cf57bb65fee2d70e119bc7 Reviewed-on: https://skia-review.googlesource.com/18842 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/opts')
-rw-r--r--src/opts/SkXfermode_opts.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/opts/SkXfermode_opts.h b/src/opts/SkXfermode_opts.h
index 81e5bb9f30..e7db073392 100644
--- a/src/opts/SkXfermode_opts.h
+++ b/src/opts/SkXfermode_opts.h
@@ -229,39 +229,6 @@ public:
}
}
- void xfer16(uint16_t dst[], const SkPMColor src[], int n, const SkAlpha aa[]) const override {
- mark_dst_initialized_if_safe<Xfermode>(dst, dst+n);
- SkPMColor dst32[4];
- while (n >= 4) {
- dst32[0] = SkPixel16ToPixel32(dst[0]);
- dst32[1] = SkPixel16ToPixel32(dst[1]);
- dst32[2] = SkPixel16ToPixel32(dst[2]);
- dst32[3] = SkPixel16ToPixel32(dst[3]);
-
- this->xfer32(dst32, src, 4, aa);
-
- dst[0] = SkPixel32ToPixel16(dst32[0]);
- dst[1] = SkPixel32ToPixel16(dst32[1]);
- dst[2] = SkPixel32ToPixel16(dst32[2]);
- dst[3] = SkPixel32ToPixel16(dst32[3]);
-
- dst += 4;
- src += 4;
- aa += aa ? 4 : 0;
- n -= 4;
- }
- while (n) {
- SkPMColor dst32 = SkPixel16ToPixel32(*dst);
- this->xfer32(&dst32, src, 1, aa);
- *dst = SkPixel32ToPixel16(dst32);
-
- dst += 1;
- src += 1;
- aa += aa ? 1 : 0;
- n -= 1;
- }
- }
-
private:
typedef SkProcCoeffXfermode INHERITED;
};
@@ -278,14 +245,6 @@ public:
}
}
- void xfer16(uint16_t dst[], const SkPMColor src[], int n, const SkAlpha aa[]) const override {
- for (int i = 0; i < n; i++) {
- SkPMColor dst32 = SkPixel16ToPixel32(dst[i]);
- dst32 = Xfer32_1(dst32, src[i], aa ? aa+i : nullptr);
- dst[i] = SkPixel32ToPixel16(dst32);
- }
- }
-
private:
static SkPMColor Xfer32_1(SkPMColor dst, const SkPMColor src, const SkAlpha* aa) {
Sk4f d = Load(dst),