diff options
author | Brian Salomon <bsalomon@google.com> | 2018-02-13 09:25:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-13 14:48:23 +0000 |
commit | 366093f2124c38fa5c590c9ed2d1811817fed8ee (patch) | |
tree | a4d4d1b15a425704a7ea09575d7ce7c97bc4c2a7 /tests/SRGBReadWritePixelsTest.cpp | |
parent | a3cc32c94579289e99ca46235602a13f20fe5996 (diff) |
Make it so that GrSurfaceContext with a sRGB GrPixelConfig must have a
color space with a sRGB-like gamma.
Change-Id: I99b80a9846caacd6848b0f9f55ed0f7f23e69b90
Reviewed-on: https://skia-review.googlesource.com/106640
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/SRGBReadWritePixelsTest.cpp')
-rw-r--r-- | tests/SRGBReadWritePixelsTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/SRGBReadWritePixelsTest.cpp b/tests/SRGBReadWritePixelsTest.cpp index bb7b77c5b9..a177f72ee5 100644 --- a/tests/SRGBReadWritePixelsTest.cpp +++ b/tests/SRGBReadWritePixelsTest.cpp @@ -174,11 +174,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SRGBReadWritePixels, reporter, ctxInfo) { desc.fConfig = kSRGBA_8888_GrPixelConfig; if (context->caps()->isConfigRenderable(desc.fConfig) && context->caps()->isConfigTexturable(desc.fConfig)) { - sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeDeferredSurfaceContext( - desc, GrMipMapped::kNo, - SkBackingFit::kExact, - SkBudgeted::kNo); + desc, GrMipMapped::kNo, SkBackingFit::kExact, SkBudgeted::kNo, + SkColorSpace::MakeSRGB()); if (!sContext) { ERRORF(reporter, "Could not create SRGBA surface context."); return; |