Index: src/gpu/GrColorSpaceXform.cpp |
diff --git a/src/gpu/GrColorSpaceXform.cpp b/src/gpu/GrColorSpaceXform.cpp |
index 2d17610bdad23c8d231339889a58ee674aeb7e6a..3380b0f39079a7e3b4eef68aa2b4dba10a8334c0 100644 |
--- a/src/gpu/GrColorSpaceXform.cpp |
+++ b/src/gpu/GrColorSpaceXform.cpp |
@@ -58,3 +58,9 @@ sk_sp<GrColorSpaceXform> GrColorSpaceXform::Make(SkColorSpace* src, SkColorSpace |
return sk_make_sp<GrColorSpaceXform>(srcToDst); |
} |
+ |
+GrColor4f GrColorSpaceXform::apply(const GrColor4f& srcColor) { |
+ GrColor4f result; |
+ fSrcToDst.mapScalars(srcColor.fRGBA, result.fRGBA); |
+ return result; |
+} |