diff options
author | brianosman <brianosman@google.com> | 2016-06-17 13:43:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-17 13:43:27 -0700 |
commit | 944876f2745a62a839e49275daf93a0329372e67 (patch) | |
tree | efcb2109562bcefb36a65099a63f329091d6b9d4 /gm/color4f.cpp | |
parent | e75cdcb85b73c4484a992bf5531394632e757870 (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/color4f.cpp')
-rw-r--r-- | gm/color4f.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gm/color4f.cpp b/gm/color4f.cpp index 33d837786a..5a516a569b 100644 --- a/gm/color4f.cpp +++ b/gm/color4f.cpp @@ -73,10 +73,13 @@ DEF_SIMPLE_GM(color4f, canvas, 1024, 260) { // even if it holds sRGB values. bg.setColor(0xFFFFFFFF); - SkColorProfileType const profiles[] { kLinear_SkColorProfileType, kSRGB_SkColorProfileType }; - for (auto profile : profiles) { + sk_sp<SkColorSpace> colorSpaces[]{ + nullptr, + SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) + }; + for (auto colorSpace : colorSpaces) { const SkImageInfo info = SkImageInfo::Make(1024, 100, kN32_SkColorType, kPremul_SkAlphaType, - profile); + colorSpace); auto surface(SkSurface::MakeRaster(info)); surface->getCanvas()->drawPaint(bg); draw_into_canvas(surface->getCanvas()); |