diff options
Diffstat (limited to 'tests/SRGBMipMapTest.cpp')
-rw-r--r-- | tests/SRGBMipMapTest.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/SRGBMipMapTest.cpp b/tests/SRGBMipMapTest.cpp index 1e62f88be8..f798119ad5 100644 --- a/tests/SRGBMipMapTest.cpp +++ b/tests/SRGBMipMapTest.cpp @@ -123,12 +123,17 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SRGBMipMaps, reporter, ctxInfo) { 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, 0, + kSkia8888_GrPixelConfig, + nullptr, + 0, kDefault_GrSurfaceOrigin, &l32Props); sk_sp<GrDrawContext> s32DrawContext = context->newDrawContext(SkBackingFit::kExact, rtS, rtS, - kSkiaGamma8888_GrPixelConfig, 0, + kSkiaGamma8888_GrPixelConfig, + std::move(srgbColorSpace), + 0, kDefault_GrSurfaceOrigin, &s32Props); |