| Index: src/gpu/GrSWMaskHelper.cpp
|
| diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
|
| index 4486bb079cb9d4187c8e757ce3ba0cf26cbff687..849a9338ed81cbd5d4d60680546650eae5fc620e 100644
|
| --- a/src/gpu/GrSWMaskHelper.cpp
|
| +++ b/src/gpu/GrSWMaskHelper.cpp
|
| @@ -104,7 +104,7 @@ GrTexture* GrSWMaskHelper::createTexture() {
|
| desc.fHeight = fPixels.height();
|
| desc.fConfig = kAlpha_8_GrPixelConfig;
|
|
|
| - return fContext->textureProvider()->createApproxTexture(desc);
|
| + return fTexProvider->createApproxTexture(desc);
|
| }
|
|
|
| /**
|
| @@ -134,13 +134,13 @@ void GrSWMaskHelper::toSDF(unsigned char* sdf) {
|
| * and uploads the result to a scratch texture. Returns the resulting
|
| * texture on success; nullptr on failure.
|
| */
|
| -GrTexture* GrSWMaskHelper::DrawPathMaskToTexture(GrContext* context,
|
| +GrTexture* GrSWMaskHelper::DrawPathMaskToTexture(GrTextureProvider* texProvider,
|
| const SkPath& path,
|
| const GrStyle& style,
|
| const SkIRect& resultBounds,
|
| bool antiAlias,
|
| const SkMatrix* matrix) {
|
| - GrSWMaskHelper helper(context);
|
| + GrSWMaskHelper helper(texProvider);
|
|
|
| if (!helper.init(resultBounds, matrix)) {
|
| return nullptr;
|
|
|