Index: include/codec/SkEncodedInfo.h |
diff --git a/include/codec/SkEncodedInfo.h b/include/codec/SkEncodedInfo.h |
index 60ad588edd67c7e059e2ef50500669773b185329..eb8c147a3b7037ab16a675197bdf9ec7a51ef096 100644 |
--- a/include/codec/SkEncodedInfo.h |
+++ b/include/codec/SkEncodedInfo.h |
@@ -117,7 +117,7 @@ public: |
* Returns an SkImageInfo with Skia color and alpha types that are the |
* closest possible match to the encoded info. |
*/ |
- SkImageInfo makeImageInfo(int width, int height, const sk_sp<SkColorSpace>& colorSpace) const { |
+ SkImageInfo makeImageInfo(int width, int height, sk_sp<SkColorSpace> colorSpace) const { |
switch (fColor) { |
case kGray_Color: |
SkASSERT(kOpaque_Alpha == fAlpha); |
@@ -147,7 +147,7 @@ public: |
case kYUVA_Color: |
SkASSERT(kOpaque_Alpha != fAlpha); |
return SkImageInfo::Make(width, height, kN32_SkColorType, |
- kUnpremul_SkAlphaType, colorSpace); |
+ kUnpremul_SkAlphaType, std::move(colorSpace)); |
default: |
SkASSERT(false); |
return SkImageInfo::MakeUnknown(); |