diff options
author | jvanverth <jvanverth@google.com> | 2014-10-06 05:59:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-06 05:59:05 -0700 |
commit | fa38a30897ceda3e93355d69b8a6812c823f41f6 (patch) | |
tree | b6aa8289db50f397333a03d000f58a696acd3775 /src/gpu/GrSWMaskHelper.h | |
parent | 2f6628e69cd47e81d44af8c340e57d76e36fd1d6 (diff) |
Add GrAASmallPathRenderer.
Uses cached signed distance fields to render scaled and rotated versions
of small paths.
BUG=skia:2935
Review URL: https://codereview.chromium.org/589103004
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index f8cce8b277..b23ee2c7c0 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, |