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

Unified Diff: include/core/SkColorSpace.h

Issue 2306313002: Revert of Delete SkColorSpace::kUnknown_Named, remove fNamed field (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 3 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 | « no previous file | src/core/SkColorSpace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkColorSpace.h
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h
index 257893f4957d00cc89b82bc5539f6ace65a32270..58095775e4b75e2b9f7a12970f173d5d7886a4f7 100644
--- a/include/core/SkColorSpace.h
+++ b/include/core/SkColorSpace.h
@@ -19,21 +19,13 @@
/**
* Common, named profiles that we can recognize.
*/
- enum Named : uint8_t {
- /**
- * By far the most common color space.
- * This is the default space for images, unmarked content, and monitors.
- */
+ enum Named {
+ kUnknown_Named,
kSRGB_Named,
-
- /**
- * Very common wide gamut color space.
- * Often used by images and monitors.
- */
kAdobeRGB_Named,
};
- enum GammaNamed : uint8_t {
+ enum GammaNamed {
kLinear_GammaNamed,
/**
@@ -124,10 +116,11 @@
static bool Equals(const SkColorSpace* src, const SkColorSpace* dst);
protected:
- SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50);
+ SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named);
const GammaNamed fGammaNamed;
const SkMatrix44 fToXYZD50;
+ const Named fNamed;
};
#endif
« no previous file with comments | « no previous file | src/core/SkColorSpace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698