Index: src/core/SkPixmap.cpp |
diff --git a/src/core/SkPixmap.cpp b/src/core/SkPixmap.cpp |
index bd551ed9d3dd09a2a2c51ddc05cbbdb31c4b9b1f..887fdb46e9518bdbd698862cc01739d4389cad94 100644 |
--- a/src/core/SkPixmap.cpp |
+++ b/src/core/SkPixmap.cpp |
@@ -52,6 +52,10 @@ bool SkPixmap::reset(const SkMask& src) { |
return false; |
} |
+void SkPixmap::setColorSpace(sk_sp<SkColorSpace> cs) { |
+ fInfo = fInfo.makeColorSpace(std::move(cs)); |
+} |
+ |
bool SkPixmap::extractSubset(SkPixmap* result, const SkIRect& subset) const { |
SkIRect srcRect, r; |
srcRect.set(0, 0, this->width(), this->height()); |