Index: gm/textblobrandomfont.cpp |
diff --git a/gm/textblobrandomfont.cpp b/gm/textblobrandomfont.cpp |
index 58f0dc6bd6b790eccd2c5aee3b20b4d481d40f05..2a6fc8e8329a1646024bb5a453160952b33f5c09 100644 |
--- a/gm/textblobrandomfont.cpp |
+++ b/gm/textblobrandomfont.cpp |
@@ -97,8 +97,8 @@ |
canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorWHITE)); |
- SkImageInfo info = SkImageInfo::MakeN32(kWidth, kHeight, kPremul_SkAlphaType, |
- sk_ref_sp(canvas->imageInfo().colorSpace())); |
+ SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight, |
+ canvas->imageInfo().profileType()); |
SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); |
uint32_t gammaCorrect = canvas->getProps(&canvasProps) |
? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; |