aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/SkImageInfoPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/private/SkImageInfoPriv.h')
-rw-r--r--include/private/SkImageInfoPriv.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/private/SkImageInfoPriv.h b/include/private/SkImageInfoPriv.h
index aac1750708..56ed16fb9d 100644
--- a/include/private/SkImageInfoPriv.h
+++ b/include/private/SkImageInfoPriv.h
@@ -10,11 +10,6 @@
#include "SkImageInfo.h"
-enum class SkDestinationSurfaceColorMode {
- kLegacy,
- kGammaAndColorSpaceAware,
-};
-
enum SkColorTypeComponentFlag {
kRed_SkColorTypeComponentFlag = 0x1,
kGreen_SkColorTypeComponentFlag = 0x2,
@@ -154,14 +149,9 @@ static inline bool SkImageInfoIsValidRenderingCS(const SkImageInfo& info) {
/**
* Returns true if |info| contains a valid combination of width, height, colorType, alphaType,
- * colorSpace. Uses |colorMode| to decide how to treat color spaces.
+ * colorSpace.
*/
-static inline bool SkImageInfoIsValid(const SkImageInfo& info,
- SkDestinationSurfaceColorMode colorMode) {
- if (SkDestinationSurfaceColorMode::kGammaAndColorSpaceAware == colorMode) {
- return SkImageInfoIsValidRenderingCS(info);
- }
-
+static inline bool SkImageInfoIsValid(const SkImageInfo& info) {
return SkImageInfoIsValidAllowNumericalCS(info);
}