Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1009)

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 6211078: Remove GrClipMaskManager's path renderer chain (in favor of GrContext's) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b