Index: gm/textblobmixedsizes.cpp |
diff --git a/gm/textblobmixedsizes.cpp b/gm/textblobmixedsizes.cpp |
index 8fdf558206136383eef6ceda8a8f438806747f71..8f5dc85e48226187401f2fb82dd4e6a5312f82a4 100644 |
--- a/gm/textblobmixedsizes.cpp |
+++ b/gm/textblobmixedsizes.cpp |
@@ -102,10 +102,8 @@ |
#if SK_SUPPORT_GPU |
// Create a new Canvas to enable DFT |
GrContext* ctx = inputCanvas->getGrContext(); |
- SkISize size = onISize(); |
- sk_sp<SkColorSpace> colorSpace = sk_ref_sp(inputCanvas->imageInfo().colorSpace()); |
- SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), |
- kPremul_SkAlphaType, colorSpace); |
+ SkImageInfo info = SkImageInfo::MakeN32Premul(onISize(), |
+ inputCanvas->imageInfo().profileType()); |
SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); |
uint32_t gammaCorrect = inputCanvas->getProps(&canvasProps) |
? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; |