Index: tools/viewer/sk_app/WindowContext.cpp |
diff --git a/tools/viewer/sk_app/WindowContext.cpp b/tools/viewer/sk_app/WindowContext.cpp |
index 41bbd14576b37f604c8f65d7001b8de076932553..ecac2cc0047b44ab2d189dbd4e223148ff3cba40 100755 |
--- a/tools/viewer/sk_app/WindowContext.cpp |
+++ b/tools/viewer/sk_app/WindowContext.cpp |
@@ -36,7 +36,7 @@ sk_sp<SkSurface> WindowContext::createRenderSurface(sk_sp<GrRenderTarget> rt, in |
SkImageInfo info = SkImageInfo::Make(fWidth, fHeight, |
fDisplayParams.fColorType, |
kUnknown_SkAlphaType, |
- fDisplayParams.fProfileType); |
+ fDisplayParams.fColorSpace); |
return SkSurface::MakeRenderTarget(fContext, SkBudgeted::kNo, info, |
fDisplayParams.fMSAASampleCount, &props); |
} else { |
@@ -52,7 +52,7 @@ void WindowContext::presentRenderSurface(sk_sp<SkSurface> renderSurface, sk_sp<G |
SkImageInfo info = SkImageInfo::Make(fWidth, fHeight, |
fDisplayParams.fColorType, |
kUnknown_SkAlphaType, |
- fDisplayParams.fProfileType); |
+ fDisplayParams.fColorSpace); |
SkBitmap bm; |
bm.allocPixels(info); |
renderSurface->getCanvas()->readPixels(&bm, 0, 0); |