Index: src/codec/SkPngCodec.cpp |
diff --git a/src/codec/SkPngCodec.cpp b/src/codec/SkPngCodec.cpp |
index 1ca3586c6c1af03a734991b68f30362aad009e8b..4bd87ed4028ab32acfe4335f6fa6172cba893277 100644 |
--- a/src/codec/SkPngCodec.cpp |
+++ b/src/codec/SkPngCodec.cpp |
@@ -236,7 +236,7 @@ sk_sp<SkColorSpace> read_color_space(png_structp png_ptr, png_infop info_ptr) { |
SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); |
mat.set3x3ColMajorf(toXYZD50); |
- return SkColorSpace::NewRGB(mat, std::move(gammas)); |
+ return SkColorSpace::NewRGB(std::move(gammas), mat); |
} |
// Last, check for gamma. |
@@ -249,7 +249,7 @@ sk_sp<SkColorSpace> read_color_space(png_structp png_ptr, png_infop info_ptr) { |
float value = png_inverted_fixed_point_to_float(gamma); |
gammas = SkColorSpace::SkGammas(value, value, value); |
- return SkColorSpace::NewRGB(SkMatrix44::I(), std::move(gammas)); |
+ return SkColorSpace::NewRGB(std::move(gammas), SkMatrix44::I()); |
} |
#endif // LIBPNG >= 1.6 |