Index: src/gpu/GrColorSpaceXform.cpp |
diff --git a/src/gpu/GrColorSpaceXform.cpp b/src/gpu/GrColorSpaceXform.cpp |
index c7be3065f3b4ee2d7879453793c865e20a6f4682..2d17610bdad23c8d231339889a58ee674aeb7e6a 100644 |
--- a/src/gpu/GrColorSpaceXform.cpp |
+++ b/src/gpu/GrColorSpaceXform.cpp |
@@ -35,13 +35,10 @@ static inline bool matrix_is_almost_identity(const SkMatrix44& m, |
sk_float_almost_equals(m.getFloat(3, 3), 1.0f, tol); |
} |
-GrColorSpaceXform::GrColorSpaceXform(const SkMatrix44& srcToDst, SkAlphaType srcAlphaType) |
- : fSrcAlphaType(srcAlphaType) { |
- srcToDst.asColMajorf(fSrcToDst); |
-} |
+GrColorSpaceXform::GrColorSpaceXform(const SkMatrix44& srcToDst) |
+ : fSrcToDst(srcToDst) {} |
-sk_sp<GrColorSpaceXform> GrColorSpaceXform::Make(SkColorSpace* src, SkColorSpace* dst, |
- SkAlphaType srcAlphaType) { |
+sk_sp<GrColorSpaceXform> GrColorSpaceXform::Make(SkColorSpace* src, SkColorSpace* dst) { |
if (!src || !dst) { |
// Invalid |
return nullptr; |
@@ -59,5 +56,5 @@ sk_sp<GrColorSpaceXform> GrColorSpaceXform::Make(SkColorSpace* src, SkColorSpace |
return nullptr; |
} |
- return sk_make_sp<GrColorSpaceXform>(srcToDst, srcAlphaType); |
+ return sk_make_sp<GrColorSpaceXform>(srcToDst); |
} |