From 0152d731e0be311fda29467086d2c83629601aa1 Mon Sep 17 00:00:00 2001 From: robertphillips Date: Fri, 20 May 2016 06:38:43 -0700 Subject: 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 --- src/gpu/GrClipMaskManager.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/gpu/GrClipMaskManager.h') 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 CreateSoftwareClipMask(GrContext*, + static sk_sp CreateSoftwareClipMask(GrTextureProvider*, int32_t elementsGenID, GrReducedClip::InitialState initialState, const GrReducedClip::ElementList& elements, -- cgit v1.2.3