Index: src/core/SkColorSpacePriv.h |
diff --git a/src/core/SkColorSpacePriv.h b/src/core/SkColorSpacePriv.h |
index a07640b555f9857154bb3a039669d1df70a3080f..47fab647ff19ac5b13564cc0e7b8735a043f6cd0 100644 |
--- a/src/core/SkColorSpacePriv.h |
+++ b/src/core/SkColorSpacePriv.h |
@@ -52,9 +52,9 @@ public: |
return fRed.isValue() && fGreen.isValue() && fBlue.isValue(); |
} |
- SkGammaCurve fRed; |
- SkGammaCurve fGreen; |
- SkGammaCurve fBlue; |
+ const SkGammaCurve fRed; |
+ const SkGammaCurve fGreen; |
+ const SkGammaCurve fBlue; |
SkGammas(float red, float green, float blue) |
: fRed(red) |
@@ -62,6 +62,12 @@ public: |
, fBlue(blue) |
{} |
+ SkGammas(SkGammaCurve red, SkGammaCurve green, SkGammaCurve blue) |
+ : fRed(std::move(red)) |
+ , fGreen(std::move(green)) |
+ , fBlue(std::move(blue)) |
+ {} |
+ |
SkGammas() {} |
friend class SkColorSpace; |