aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkArithmeticMode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkArithmeticMode.cpp')
-rw-r--r--src/effects/SkArithmeticMode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp
index 45464c2efa..c999ce08c9 100644
--- a/src/effects/SkArithmeticMode.cpp
+++ b/src/effects/SkArithmeticMode.cpp
@@ -133,6 +133,7 @@ static bool fitsInBits(SkScalar x, int bits) {
#endif
}
+#if 0 // UNUSED
static int32_t toDot8(SkScalar x) {
#ifdef SK_SCALAR_IS_FIXED
x += 1 << 7;
@@ -142,17 +143,18 @@ static int32_t toDot8(SkScalar x) {
return (int32_t)(x * 256);
#endif
}
+#endif
SkXfermode* SkArithmeticMode::Create(SkScalar k1, SkScalar k2,
SkScalar k3, SkScalar k4) {
if (fitsInBits(k1, 8) && fitsInBits(k2, 16) &&
fitsInBits(k2, 16) && fitsInBits(k2, 24)) {
+#if 0 // UNUSED
int32_t i1 = toDot8(k1);
int32_t i2 = toDot8(k2);
int32_t i3 = toDot8(k3);
int32_t i4 = toDot8(k4);
-#if 0
if (i1) {
return SkNEW_ARGS(SkArithmeticMode_quad, (i1, i2, i3, i4));
}