aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-26 11:36:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-26 11:36:05 -0700
commit3a0dbde1cfa84b08c7dd5b597142e9f6179f2d07 (patch)
tree8415ee29b45878e0c304955b4553fda4431c1d5f /tests
parentdc2257bfab9fc232f96c6db0595b9d12b2f0cf36 (diff)
Remove SkSurfaceProps gamma-correctness flag entirely.
This is no longer required - gamma-correctness is now just based on the presence or absence of a color space. Public API change is just removal of (unused) flag. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2188463002 TBR=bsalomon@google.com Review-Url: https://codereview.chromium.org/2188463002
Diffstat (limited to 'tests')
-rw-r--r--tests/SRGBMipMapTest.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/SRGBMipMapTest.cpp b/tests/SRGBMipMapTest.cpp
index f798119ad5..12f23adbbf 100644
--- a/tests/SRGBMipMapTest.cpp
+++ b/tests/SRGBMipMapTest.cpp
@@ -120,22 +120,13 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SRGBMipMaps, reporter, ctxInfo) {
SkAutoTUnref<GrTexture> texture(texProvider->createTexture(desc, SkBudgeted::kNo, texData, 0));
// Create two draw contexts (L32 and S32)
- SkSurfaceProps l32Props(SkSurfaceProps::kLegacyFontHost_InitType);
- SkSurfaceProps s32Props(SkSurfaceProps::kGammaCorrect_Flag,
- SkSurfaceProps::kLegacyFontHost_InitType);
sk_sp<SkColorSpace> srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
sk_sp<GrDrawContext> l32DrawContext = context->newDrawContext(SkBackingFit::kExact, rtS, rtS,
kSkia8888_GrPixelConfig,
- nullptr,
- 0,
- kDefault_GrSurfaceOrigin,
- &l32Props);
+ nullptr);
sk_sp<GrDrawContext> s32DrawContext = context->newDrawContext(SkBackingFit::kExact, rtS, rtS,
kSkiaGamma8888_GrPixelConfig,
- std::move(srgbColorSpace),
- 0,
- kDefault_GrSurfaceOrigin,
- &s32Props);
+ std::move(srgbColorSpace));
SkRect rect = SkRect::MakeWH(SkIntToScalar(rtS), SkIntToScalar(rtS));
GrNoClip noClip;