Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: src/core/SkColorSpacePriv.h

Issue 1986833002: SkColorSpace follow-ups (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: New SkGammas constructor that takes SkGammaCurves Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkColorSpace.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/core/SkColorSpace.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698