aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/dftext.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-06-20 08:25:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-20 08:25:02 -0700
commit52ede1d905728cdcaa98db1e4a33724f5a85c62d (patch)
tree8c95fb157776dc2a561c8de731cac19cc78fa5a0 /gm/dftext.cpp
parent0ed057542ce545da57cda92dc09c1da8b5fdc363 (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 Committed: https://skia.googlesource.com/skia/+/944876f2745a62a839e49275daf93a0329372e67 Review-Url: https://codereview.chromium.org/2071393002
Diffstat (limited to 'gm/dftext.cpp')
-rw-r--r--gm/dftext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index 05aef4c9d6..42d650ed2f 100644
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -48,8 +48,9 @@ protected:
// set up offscreen rendering with distance field text
#if SK_SUPPORT_GPU
GrContext* ctx = inputCanvas->getGrContext();
- SkImageInfo info = SkImageInfo::MakeN32Premul(onISize(),
- inputCanvas->imageInfo().profileType());
+ SkISize size = onISize();
+ SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), kPremul_SkAlphaType,
+ sk_ref_sp(inputCanvas->imageInfo().colorSpace()));
SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType);
uint32_t gammaCorrect = inputCanvas->getProps(&canvasProps)
? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0;