aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/textblobgeometrychange.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-08-30 07:07:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-30 07:07:59 -0700
commit0e22eb8e6efc7d7ab7a601ba555947916d139906 (patch)
tree8f4087433a195f8e874c0b83549552575cde0e75 /gm/textblobgeometrychange.cpp
parent6f5df6acb7dec9788fe5d9c44f7892b896e21de3 (diff)
Some tests around surface creation and snapshotting with color space
Verify the rules that we're converging on for surfaces: - For 8888, we only support sRGB-like gamma, or no color space at all. - For F16, we require a color space, with linear gamma. - For all other formats, we do not support color spaces. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2270823002 Review-Url: https://codereview.chromium.org/2270823002
Diffstat (limited to 'gm/textblobgeometrychange.cpp')
-rw-r--r--gm/textblobgeometrychange.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/textblobgeometrychange.cpp b/gm/textblobgeometrychange.cpp
index 1b7bff319d..5e3f0d15e6 100644
--- a/gm/textblobgeometrychange.cpp
+++ b/gm/textblobgeometrychange.cpp
@@ -42,8 +42,7 @@ protected:
SkAutoTUnref<const SkTextBlob> blob(builder.build());
- SkImageInfo info = SkImageInfo::MakeN32(200, 200, kPremul_SkAlphaType,
- sk_ref_sp(canvas->imageInfo().colorSpace()));
+ SkImageInfo info = SkImageInfo::MakeN32Premul(200, 200);
SkSurfaceProps props(0, kUnknown_SkPixelGeometry);
auto surface = canvas->makeSurface(info, &props);
if (!surface) {