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

Unified Diff: src/core/SkImageInfo.cpp

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/SkImageInfo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageInfo.cpp
diff --git a/src/core/SkImageInfo.cpp b/src/core/SkImageInfo.cpp
index ba418d519840d036f64f3e7173d3fcaff8796ac7..b3b9c385d8a13eaf14fe78d11f8393c07bb924ed 100644
--- a/src/core/SkImageInfo.cpp
+++ b/src/core/SkImageInfo.cpp
@@ -9,13 +9,6 @@
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
-#ifdef SK_SUPPORT_LEGACY_COLORPROFILETYPE
-SkColorProfileType SkImageInfo::profileType() const {
- return fColorSpace && fColorSpace->gammaCloseToSRGB()
- ? kSRGB_SkColorProfileType : kLinear_SkColorProfileType;
-}
-#endif
-
static bool alpha_type_is_valid(SkAlphaType alphaType) {
return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType);
}
« no previous file with comments | « include/core/SkImageInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698