Index: src/gpu/GrClipMaskManager.h |
=================================================================== |
--- src/gpu/GrClipMaskManager.h (revision 4030) |
+++ src/gpu/GrClipMaskManager.h (working copy) |
@@ -284,8 +284,7 @@ |
public: |
GrClipMaskManager() |
: fClipMaskInStencil(false) |
- , fClipMaskInAlpha(false) |
- , fPathRendererChain(NULL) { |
+ , fClipMaskInAlpha(false) { |
} |
bool createClipMask(GrGpu* gpu, |
@@ -305,16 +304,16 @@ |
fAACache.setContext(context); |
} |
+ GrContext* getContext() { |
+ return fAACache.getContext(); |
+ } |
+ |
protected: |
private: |
bool fClipMaskInStencil; // is the clip mask in the stencil buffer? |
bool fClipMaskInAlpha; // is the clip mask in an alpha texture? |
GrClipMaskCache fAACache; // cache for the AA path |
- // must be instantiated after GrGpu object has been given its owning |
- // GrContext ptr. (GrGpu is constructed first then handed off to GrContext). |
- GrPathRendererChain* fPathRendererChain; |
- |
bool createStencilClipMask(GrGpu* gpu, |
const GrClip& clip, |
const GrRect& bounds, |
@@ -334,11 +333,6 @@ |
bool useSWOnlyPath(GrGpu* gpu, const GrClip& clipIn); |
- bool drawPath(GrGpu* gpu, |
- const SkPath& path, |
- GrPathFill fill, |
- bool doAA); |
- |
bool drawClipShape(GrGpu* gpu, |
GrTexture* target, |
const GrClip& clipIn, |
@@ -353,12 +347,6 @@ |
void setupCache(const GrClip& clip, |
const GrIRect& bounds); |
- // determines the path renderer used to draw a clip path element. |
- GrPathRenderer* getClipPathRenderer(GrGpu* gpu, |
- const SkPath& path, |
- GrPathFill fill, |
- bool antiAlias); |
- |
typedef GrNoncopyable INHERITED; |
}; |