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

Unified Diff: include/core/SkImageInfo.h

Issue 2101983003: remove SK_SUPPORT_LEGACY_COLORPROFILETYPE dead-code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « include/core/SkBitmap.h ('k') | src/core/SkImageInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageInfo.h
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h
index b45ee38ee182e0382076728c2f0298df26dbdb0e..f143503c6611a4650b0eb565e2d78dd9dcf4d733 100644
--- a/include/core/SkImageInfo.h
+++ b/include/core/SkImageInfo.h
@@ -169,15 +169,6 @@ enum SkYUVColorSpace {
///////////////////////////////////////////////////////////////////////////////
-#ifdef SK_SUPPORT_LEGACY_COLORPROFILETYPE
-enum SkColorProfileType {
- kLinear_SkColorProfileType,
- kSRGB_SkColorProfileType,
-
- kLastEnum_SkColorProfileType = kSRGB_SkColorProfileType
-};
-#endif
-
enum class SkSourceGammaTreatment {
kRespect,
kIgnore,
@@ -238,41 +229,6 @@ public:
return MakeUnknown(0, 0);
}
-#ifdef SK_SUPPORT_LEGACY_COLORPROFILETYPE
- static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
- SkColorProfileType pt) {
- sk_sp<SkColorSpace> cs = (kSRGB_SkColorProfileType == pt) ?
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : nullptr;
- return Make(width, height, ct, at, cs);
- }
-
- static SkImageInfo MakeN32(int width, int height, SkAlphaType at, SkColorProfileType pt) {
- sk_sp<SkColorSpace> cs = (kSRGB_SkColorProfileType == pt) ?
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : nullptr;
- return SkImageInfo(width, height, kN32_SkColorType, at, cs);
- }
-
- /**
- * Sets colortype to the native ARGB32 type, and the alphatype to premul.
- */
- static SkImageInfo MakeN32Premul(int width, int height, SkColorProfileType pt) {
- sk_sp<SkColorSpace> cs = (kSRGB_SkColorProfileType == pt) ?
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : nullptr;
- return Make(width, height, kN32_SkColorType, kPremul_SkAlphaType, cs);
- }
-
- /**
- * Sets colortype to the native ARGB32 type, and the alphatype to premul.
- */
- static SkImageInfo MakeN32Premul(const SkISize& size, SkColorProfileType pt) {
- return MakeN32Premul(size.width(), size.height(), pt);
- }
-
- SkColorProfileType profileType() const;
- bool isLinear() const { return kLinear_SkColorProfileType == this->profileType(); }
- bool isSRGB() const { return kSRGB_SkColorProfileType == this->profileType(); }
-#endif
-
int width() const { return fWidth; }
int height() const { return fHeight; }
SkColorType colorType() const { return fColorType; }
« no previous file with comments | « include/core/SkBitmap.h ('k') | src/core/SkImageInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698