diff options
author | robertphillips <robertphillips@google.com> | 2015-10-30 05:15:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-30 05:15:11 -0700 |
commit | 13391dd97209f36c71bc18cc75084f74c2f6af15 (patch) | |
tree | c15373507f44eb353f3a46cebb059fab57366b85 /src/gpu/GrPathRendererChain.h | |
parent | 8a3760f8b2ce8ded477ba90dd8e1522b1df441b8 (diff) |
Minor cleanup of clip mask manager
Follow up to https://codereview.chromium.org/1418073005/ (Remove gpu-side clip mask merging from clip mask manager).
The path renderer chain is only ever allocated when it is about to be used (so the delayed initialization doesn't buy us anything).
We can now reduce the lifetime of the pipelineBuilder in createAlphaClipMask
Review URL: https://codereview.chromium.org/1416113006
Diffstat (limited to 'src/gpu/GrPathRendererChain.h')
-rw-r--r-- | src/gpu/GrPathRendererChain.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/gpu/GrPathRendererChain.h b/src/gpu/GrPathRendererChain.h index e0e7d46f06..ade30551ae 100644 --- a/src/gpu/GrPathRendererChain.h +++ b/src/gpu/GrPathRendererChain.h @@ -10,15 +10,10 @@ #include "GrPathRenderer.h" -#include "SkRefCnt.h" +#include "SkTypes.h" #include "SkTArray.h" class GrContext; -class GrPipelineBuilder; -class GrShaderCaps; -class GrStrokeInfo; -class SkMatrix; -class SkPath; /** * Keeps track of an ordered list of path renderers. When a path needs to be @@ -26,7 +21,7 @@ class SkPath; * path renderer to the list implement the GrPathRenderer::AddPathRenderers * function. */ -class GrPathRendererChain : public SkRefCnt { +class GrPathRendererChain : public SkNoncopyable { public: GrPathRendererChain(GrContext* context); @@ -52,21 +47,13 @@ public: GrPathRenderer::StencilSupport* stencilSupport); private: - GrPathRendererChain(); - // takes a ref and unrefs in destructor GrPathRenderer* addPathRenderer(GrPathRenderer* pr); - void init(); - enum { kPreAllocCount = 8, }; - bool fInit; - GrContext* fOwner; SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; - - typedef SkRefCnt INHERITED; }; #endif |