Index: src/core/SkColorSpaceXform.cpp |
diff --git a/src/core/SkColorSpaceXform.cpp b/src/core/SkColorSpaceXform.cpp |
index 4fbfa6cd9e26973348fbfed05542bcb70df94cff..924f24f6fc1d7768049cf7635efd5f499988ba22 100644 |
--- a/src/core/SkColorSpaceXform.cpp |
+++ b/src/core/SkColorSpaceXform.cpp |
@@ -629,7 +629,7 @@ |
template <> |
void SkColorSpaceXform_Base<SkColorSpace::kSRGB_GammaNamed> |
-::applyToRGBA(RGBA32* dst, const RGBA32* src, int len) const |
+::applyTo8888(SkPMColor* dst, const RGBA32* src, int len) const |
{ |
if (fColorLUT) { |
handle_color_lut(dst, src, len, fColorLUT.get()); |
@@ -641,7 +641,7 @@ |
template <> |
void SkColorSpaceXform_Base<SkColorSpace::k2Dot2Curve_GammaNamed> |
-::applyToRGBA(RGBA32* dst, const RGBA32* src, int len) const |
+::applyTo8888(SkPMColor* dst, const RGBA32* src, int len) const |
{ |
if (fColorLUT) { |
handle_color_lut(dst, src, len, fColorLUT.get()); |
@@ -653,7 +653,7 @@ |
template <> |
void SkColorSpaceXform_Base<SkColorSpace::kNonStandard_GammaNamed> |
-::applyToRGBA(RGBA32* dst, const RGBA32* src, int len) const |
+::applyTo8888(SkPMColor* dst, const RGBA32* src, int len) const |
{ |
if (fColorLUT) { |
handle_color_lut(dst, src, len, fColorLUT.get()); |
@@ -661,43 +661,6 @@ |
} |
SkOpts::color_xform_RGB1_to_table(dst, src, len, fSrcGammaTables, fSrcToDst, fDstGammaTables); |
-} |
- |
-template <> |
-void SkColorSpaceXform_Base<SkColorSpace::kSRGB_GammaNamed> |
-::applyToBGRA(BGRA32* dst, const RGBA32* src, int len) const |
-{ |
- if (fColorLUT) { |
- handle_color_lut(dst, src, len, fColorLUT.get()); |
- src = dst; |
- } |
- |
- SkOpts::color_xform_RGB1_to_srgb_swaprb(dst, src, len, fSrcGammaTables, fSrcToDst); |
-} |
- |
-template <> |
-void SkColorSpaceXform_Base<SkColorSpace::k2Dot2Curve_GammaNamed> |
-::applyToBGRA(BGRA32* dst, const RGBA32* src, int len) const |
-{ |
- if (fColorLUT) { |
- handle_color_lut(dst, src, len, fColorLUT.get()); |
- src = dst; |
- } |
- |
- SkOpts::color_xform_RGB1_to_2dot2_swaprb(dst, src, len, fSrcGammaTables, fSrcToDst); |
-} |
- |
-template <> |
-void SkColorSpaceXform_Base<SkColorSpace::kNonStandard_GammaNamed> |
-::applyToBGRA(BGRA32* dst, const RGBA32* src, int len) const |
-{ |
- if (fColorLUT) { |
- handle_color_lut(dst, src, len, fColorLUT.get()); |
- src = dst; |
- } |
- |
- SkOpts::color_xform_RGB1_to_table_swaprb(dst, src, len, fSrcGammaTables, fSrcToDst, |
- fDstGammaTables); |
} |
template <SkColorSpace::GammaNamed T> |