Index: tests/SRGBMipMapTest.cpp |
diff --git a/tests/SRGBMipMapTest.cpp b/tests/SRGBMipMapTest.cpp |
index 12f23adbbf7d0d3510addd9aee2c77ab3252f54c..6eb4b2114a1fcdc0139e99c6c85f76071d06ac1b 100644 |
--- a/tests/SRGBMipMapTest.cpp |
+++ b/tests/SRGBMipMapTest.cpp |
@@ -121,12 +121,12 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SRGBMipMaps, reporter, ctxInfo) { |
// Create two draw contexts (L32 and S32) |
sk_sp<SkColorSpace> srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); |
- sk_sp<GrDrawContext> l32DrawContext = context->newDrawContext(SkBackingFit::kExact, rtS, rtS, |
- kSkia8888_GrPixelConfig, |
- nullptr); |
- sk_sp<GrDrawContext> s32DrawContext = context->newDrawContext(SkBackingFit::kExact, rtS, rtS, |
- kSkiaGamma8888_GrPixelConfig, |
- std::move(srgbColorSpace)); |
+ sk_sp<GrDrawContext> l32DrawContext = context->makeDrawContext(SkBackingFit::kExact, rtS, rtS, |
+ kSkia8888_GrPixelConfig, |
+ nullptr); |
+ sk_sp<GrDrawContext> s32DrawContext = context->makeDrawContext(SkBackingFit::kExact, rtS, rtS, |
+ kSkiaGamma8888_GrPixelConfig, |
+ std::move(srgbColorSpace)); |
SkRect rect = SkRect::MakeWH(SkIntToScalar(rtS), SkIntToScalar(rtS)); |
GrNoClip noClip; |