Index: src/gpu/GrColorSpaceXform.cpp |
diff --git a/src/gpu/GrColorSpaceXform.cpp b/src/gpu/GrColorSpaceXform.cpp |
index f60dbcd1c02a7cfbaf64887f7000b8b75332a605..a1e89380482707cc24ac517c8024eb4c21cbcc2e 100644 |
--- a/src/gpu/GrColorSpaceXform.cpp |
+++ b/src/gpu/GrColorSpaceXform.cpp |
@@ -7,6 +7,7 @@ |
#include "GrColorSpaceXform.h" |
#include "SkColorSpace.h" |
+#include "SkMatrix44.h" |
static inline bool sk_float_almost_equals(float x, float y, float tol) { |
return sk_float_abs(x - y) <= tol; |
@@ -33,6 +34,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) { |
+ srcToDst.asColMajorf(fSrcToDst); |
+} |
+ |
sk_sp<GrColorSpaceXform> GrColorSpaceXform::Make(SkColorSpace* src, SkColorSpace* dst) { |
if (!src || !dst) { |
// Invalid |