| Index: tests/GLProgramsTest.cpp
|
| diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
|
| index 393de53b74b8ba199884908fcde4033bcd62f239..2d62a5b3c30a59b7d7e86f93ff949e9d2d940022 100644
|
| --- a/tests/GLProgramsTest.cpp
|
| +++ b/tests/GLProgramsTest.cpp
|
| @@ -154,13 +154,13 @@ static sk_sp<GrDrawContext> random_draw_context(GrContext* context,
|
| : kBottomLeft_GrSurfaceOrigin;
|
| int sampleCnt = random->nextBool() ? SkTMin(4, caps->maxSampleCount()) : 0;
|
|
|
| - sk_sp<GrDrawContext> drawContext(context->newDrawContext(SkBackingFit::kExact,
|
| - kRenderTargetWidth,
|
| - kRenderTargetHeight,
|
| - kRGBA_8888_GrPixelConfig,
|
| - nullptr,
|
| - sampleCnt,
|
| - origin));
|
| + sk_sp<GrDrawContext> drawContext(context->makeDrawContext(SkBackingFit::kExact,
|
| + kRenderTargetWidth,
|
| + kRenderTargetHeight,
|
| + kRGBA_8888_GrPixelConfig,
|
| + nullptr,
|
| + sampleCnt,
|
| + origin));
|
| return drawContext;
|
| }
|
|
|
| @@ -343,11 +343,11 @@ bool GrDrawingManager::ProgramUnitTest(GrContext* context, int maxStages) {
|
| drawingManager->flush();
|
|
|
| // Validate that GrFPs work correctly without an input.
|
| - sk_sp<GrDrawContext> drawContext(context->newDrawContext(SkBackingFit::kExact,
|
| - kRenderTargetWidth,
|
| - kRenderTargetHeight,
|
| - kRGBA_8888_GrPixelConfig,
|
| - nullptr));
|
| + sk_sp<GrDrawContext> drawContext(context->makeDrawContext(SkBackingFit::kExact,
|
| + kRenderTargetWidth,
|
| + kRenderTargetHeight,
|
| + kRGBA_8888_GrPixelConfig,
|
| + nullptr));
|
| if (!drawContext) {
|
| SkDebugf("Could not allocate a drawContext");
|
| return false;
|
|
|