aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/textblobmixedsizes.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-06-17 13:43:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-17 13:43:27 -0700
commit944876f2745a62a839e49275daf93a0329372e67 (patch)
treeefcb2109562bcefb36a65099a63f329091d6b9d4 /gm/textblobmixedsizes.cpp
parente75cdcb85b73c4484a992bf5531394632e757870 (diff)
More removal of SkColorProfileType...
Scrub GMs. Remove the gDefaultProfile thing (it's unused now), along with the command line flag that was setting it in DM and nanobench. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2071393002 Review-Url: https://codereview.chromium.org/2071393002
Diffstat (limited to 'gm/textblobmixedsizes.cpp')
-rw-r--r--gm/textblobmixedsizes.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gm/textblobmixedsizes.cpp b/gm/textblobmixedsizes.cpp
index 8f5dc85e48..8fdf558206 100644
--- a/gm/textblobmixedsizes.cpp
+++ b/gm/textblobmixedsizes.cpp
@@ -102,8 +102,10 @@ protected:
#if SK_SUPPORT_GPU
// Create a new Canvas to enable DFT
GrContext* ctx = inputCanvas->getGrContext();
- SkImageInfo info = SkImageInfo::MakeN32Premul(onISize(),
- inputCanvas->imageInfo().profileType());
+ SkISize size = onISize();
+ sk_sp<SkColorSpace> colorSpace = sk_ref_sp(inputCanvas->imageInfo().colorSpace());
+ SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(),
+ kPremul_SkAlphaType, colorSpace);
SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType);
uint32_t gammaCorrect = inputCanvas->getProps(&canvasProps)
? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0;