diff options
author | 2016-05-20 06:38:43 -0700 | |
---|---|---|
committer | 2016-05-20 06:38:43 -0700 | |
commit | 0152d731e0be311fda29467086d2c83629601aa1 (patch) | |
tree | c447158a2d955c73791d647de1d97d1e04e7732c /src/gpu/GrClipMaskManager.h | |
parent | 24a9bd711a74450d7c76c504acbadef384293dfc (diff) |
GrSWMaskHelper and GrSoftwarePathRenderer only need the textureProvider (not GrContext)
This is split out of: https://codereview.chromium.org/1988923002/ (Declassify GrClipMaskManager and Remove GrRenderTarget and GrDrawTarget from GrPipelineBuilder)
BUG=skia:
Review-Url: https://codereview.chromium.org/1993403002
Diffstat (limited to 'src/gpu/GrClipMaskManager.h')
-rw-r--r-- | src/gpu/GrClipMaskManager.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h index d546a76136..f7f7e5c0e1 100644 --- a/src/gpu/GrClipMaskManager.h +++ b/src/gpu/GrClipMaskManager.h @@ -9,12 +9,7 @@ #include "GrPipelineBuilder.h" #include "GrReducedClip.h" -#include "GrTexture.h" #include "SkClipStack.h" -#include "SkDeque.h" -#include "SkPath.h" -#include "SkRefCnt.h" -#include "SkTLList.h" #include "SkTypes.h" class GrAppliedClip; @@ -24,7 +19,7 @@ class GrPathRenderer; class GrPathRendererChain; class GrResourceProvider; class GrTexture; -class SkPath; +class GrTextureProvider; /** * The clip mask creator handles the generation of the clip mask. If anti @@ -93,7 +88,7 @@ private: const SkIRect& clipSpaceIBounds); // Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture. - static sk_sp<GrTexture> CreateSoftwareClipMask(GrContext*, + static sk_sp<GrTexture> CreateSoftwareClipMask(GrTextureProvider*, int32_t elementsGenID, GrReducedClip::InitialState initialState, const GrReducedClip::ElementList& elements, |