Index: gm/surface.cpp |
diff --git a/gm/surface.cpp b/gm/surface.cpp |
index 15d362efd5942d1112b805656c676f69a05460a4..bae77c55946465dea63543141584bc7ef314bae2 100644 |
--- a/gm/surface.cpp |
+++ b/gm/surface.cpp |
@@ -78,7 +78,7 @@ protected: |
// must be opaque to have a hope of testing LCD text |
const SkImageInfo info = SkImageInfo::MakeN32(W, H, kOpaque_SkAlphaType, |
- canvas->imageInfo().profileType()); |
+ sk_ref_sp(canvas->imageInfo().colorSpace())); |
SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); |
bool gammaCorrect = canvas->getProps(&canvasProps) && canvasProps.isGammaCorrect(); |