diff options
author | Robert Phillips <robertphillips@google.com> | 2016-12-14 09:12:13 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-14 15:00:41 +0000 |
commit | 417b7f4255e01983eb5c2686f39294d39ad60814 (patch) | |
tree | 4ad55967f74791a9749712e23b2464940ba68651 /src/gpu/GrSWMaskHelper.h | |
parent | 4a24da5ceccbbd5eb91c75ce680c42191a5342d0 (diff) |
Replace TextureType with SkBackingFit
I believe TextureType is vestigial
Change-Id: I253f3a3200d6e05d5e0204662225f4a8e8ed5cb9
Reviewed-on: https://skia-review.googlesource.com/6029
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index 0669db9f1b..55ed3ff2e5 100644 --- a/src/gpu/GrSWMaskHelper.h +++ b/src/gpu/GrSWMaskHelper.h @@ -68,18 +68,13 @@ public: fPixels.erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); } - enum class TextureType { - kExactFit, - kApproximateFit - }; - // Canonical usage utility that draws a single path and uploads it // to the GPU. The result is returned. static GrTexture* DrawShapeMaskToTexture(GrTextureProvider*, const GrShape&, const SkIRect& resultBounds, GrAA, - TextureType, + SkBackingFit, const SkMatrix* matrix); // This utility draws a path mask generated by DrawShapeMaskToTexture using a provided paint. @@ -97,7 +92,7 @@ public: private: // Helper function to get a scratch texture suitable for capturing the // result (i.e., right size & format) - GrTexture* createTexture(TextureType); + GrTexture* createTexture(SkBackingFit); GrTextureProvider* fTexProvider; SkMatrix fMatrix; |