Index: include/core/SkImageInfo.h |
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h |
index ba4f85026486c2a30a414e5534baa71704ef3b9a..62b24f4222e4e2ed41a17e382a74896a9100f60c 100644 |
--- a/include/core/SkImageInfo.h |
+++ b/include/core/SkImageInfo.h |
@@ -13,7 +13,7 @@ |
#include "SkRect.h" |
#include "SkSize.h" |
-#define SK_SUPPORT_LEGACY_COLORPROFILETYPE |
+//#define SK_SUPPORT_LEGACY_COLORPROFILETYPE |
class SkReadBuffer; |
class SkWriteBuffer; |
@@ -220,8 +220,8 @@ public: |
/** |
* Sets colortype to the native ARGB32 type, and the alphatype to premul. |
*/ |
- static SkImageInfo MakeN32Premul(int width, int height) { |
- return Make(width, height, kN32_SkColorType, kPremul_SkAlphaType, nullptr); |
+ static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) { |
+ return Make(width, height, kN32_SkColorType, kPremul_SkAlphaType, cs); |
} |
static SkImageInfo MakeN32Premul(const SkISize& size) { |