Remove GrClipMaskManager's path renderer chain (in favor of GrContext's)

http://codereview.appspot.com/6211078/



git-svn-id: http://skia.googlecode.com/svn/trunk@4032 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index d5fcc83..aa2c088 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -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;
 };