diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkBitmap.h | 3 | ||||
-rw-r--r-- | include/private/SkImageInfoPriv.h | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 5406f94328..8b499097e9 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -86,6 +86,9 @@ public: SkColorType colorType() const { return fInfo.colorType(); } SkAlphaType alphaType() const { return fInfo.alphaType(); } SkColorSpace* colorSpace() const { return fInfo.colorSpace(); } +#ifdef SK_SUPPORT_LEGACY_COLORPROFILETYPE + SkColorProfileType profileType() const { return fInfo.profileType(); } +#endif /** * Return the number of bytes per pixel based on the colortype. If the colortype is diff --git a/include/private/SkImageInfoPriv.h b/include/private/SkImageInfoPriv.h new file mode 100644 index 0000000000..89e6e20340 --- /dev/null +++ b/include/private/SkImageInfoPriv.h @@ -0,0 +1,14 @@ +/* + * Copyright 2016 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#ifndef SkImageInfoPriv_DEFINED +#define SkImageInfoPriv_DEFINED + +#include "SkImageInfo.h" + +SK_API SkColorProfileType SkDefaultColorProfile(); + +#endif // SkImageInfoPriv_DEFINED |