Index: src/opts/SkXfermode_opts.h |
diff --git a/src/opts/SkXfermode_opts.h b/src/opts/SkXfermode_opts.h |
index 8b64d0b74ab6d38597853f46cbf052100b680383..54f906e4f6c66af21adfeffc50976d458a030f79 100644 |
--- a/src/opts/SkXfermode_opts.h |
+++ b/src/opts/SkXfermode_opts.h |
@@ -133,7 +133,7 @@ XFERMODE(ColorDodge) { |
auto srcover = s + d*isa, |
dstover = d + s*ida, |
- otherwise = sa * Sk4f::Min(da, (d*sa)*(sa-s).approxInvert()) + s*ida + d*isa; |
+ otherwise = sa * Sk4f::Min(da, (d*sa)*(sa-s).invert()) + s*ida + d*isa; |
// Order matters here, preferring d==0 over s==sa. |
auto colors = (d == Sk4f(0)).thenElse(dstover, |
@@ -149,7 +149,7 @@ XFERMODE(ColorBurn) { |
auto srcover = s + d*isa, |
dstover = d + s*ida, |
- otherwise = sa*(da-Sk4f::Min(da, (da-d)*sa*s.approxInvert())) + s*ida + d*isa; |
+ otherwise = sa*(da-Sk4f::Min(da, (da-d)*sa*s.invert())) + s*ida + d*isa; |
// Order matters here, preferring d==da over s==0. |
auto colors = (d == da).thenElse(dstover, |