| Index: src/gpu/GrSWMaskHelper.h
|
| diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
|
| index f8cce8b27717f3d0af5163ff67b23873f5742c84..b23ee2c7c0b9e6bb70b8e8af05839fd353c0e392 100644
|
| --- a/src/gpu/GrSWMaskHelper.h
|
| +++ b/src/gpu/GrSWMaskHelper.h
|
| @@ -68,13 +68,16 @@ public:
|
| // Move the mask generation results from the internal bitmap to the gpu.
|
| void toTexture(GrTexture* texture);
|
|
|
| + // Convert mask generation results to a signed distance field
|
| + void toSDF(unsigned char* sdf);
|
| +
|
| // Reset the internal bitmap
|
| void clear(uint8_t alpha) {
|
| fBM.eraseColor(SkColorSetARGB(alpha, alpha, alpha, alpha));
|
| }
|
|
|
| // Canonical usage utility that draws a single path and uploads it
|
| - // to the GPU. The result is returned in "result".
|
| + // to the GPU. The result is returned.
|
| static GrTexture* DrawPathMaskToTexture(GrContext* context,
|
| const SkPath& path,
|
| const SkStrokeRec& stroke,
|
|
|