diff options
author | Robert Phillips <robertphillips@google.com> | 2017-02-24 08:37:13 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-24 14:21:50 +0000 |
commit | 875218ebd816eb8931c64c5018ce2dc9bc8fd695 (patch) | |
tree | e2936879d44b66aea231b3098342866b9ddf714c /src/gpu/GrClipStackClip.h | |
parent | e3d4421e67d328fc0994bbfd25deab0ce3964dc2 (diff) |
Wrap cached GrTextures in GrTextureProxies (e.g., blur profiles, nine-patch blurs, etc.)
This is pulled out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors)
Change-Id: I5feac04dc1bf54bd74c65febdf6bba9e7ce28f55
Reviewed-on: https://skia-review.googlesource.com/8942
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrClipStackClip.h')
-rw-r--r-- | src/gpu/GrClipStackClip.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gpu/GrClipStackClip.h b/src/gpu/GrClipStackClip.h index 1c4d40b173..b8c5d17286 100644 --- a/src/gpu/GrClipStackClip.h +++ b/src/gpu/GrClipStackClip.h @@ -12,9 +12,7 @@ #include "SkClipStack.h" class GrPathRenderer; -class GrTexture; -class GrTextureProvider; -class GrUniqueKey; +class GrTextureProxy; /** * GrClipStackClip can apply a generic SkClipStack to the draw state. It may need to generate an @@ -40,7 +38,7 @@ public: bool isRRect(const SkRect& rtBounds, SkRRect* rr, GrAA* aa) const override; - sk_sp<GrTexture> testingOnly_createClipMask(GrContext*) const; + sk_sp<GrTextureProxy> testingOnly_createClipMask(GrContext*) const; static const char kMaskTestTag[]; private: @@ -54,10 +52,10 @@ private: // Creates an alpha mask of the clip. The mask is a rasterization of elements through the // rect specified by clipSpaceIBounds. - sk_sp<GrTexture> createAlphaClipMask(GrContext*, const GrReducedClip&) const; + sk_sp<GrTextureProxy> createAlphaClipMask(GrContext*, const GrReducedClip&) const; // Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture. - sk_sp<GrTexture> createSoftwareClipMask(GrContext*, const GrReducedClip&) const; + sk_sp<GrTextureProxy> createSoftwareClipMask(GrContext*, const GrReducedClip&) const; static bool UseSWOnlyPath(GrContext*, bool hasUserStencilSettings, |