diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-10 19:10:17 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-10 19:10:17 +0000 |
commit | 45a15f551b5b3c6c747d8eaf6466b7d3b76a8fae (patch) | |
tree | 49c9fd68caf3a90c7ed5a1ac89f418d6ce7b4afb /src/gpu/GrPathRendererChain.h | |
parent | 6f9286202831dd807daf9b1e39271da8f390210e (diff) |
Modifications to GrPatherRenderer(Chain) interfaces to support clip mask manager.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6904069
git-svn-id: http://skia.googlecode.com/svn/trunk@6741 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrPathRendererChain.h')
-rw-r--r-- | src/gpu/GrPathRendererChain.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/gpu/GrPathRendererChain.h b/src/gpu/GrPathRendererChain.h deleted file mode 100644 index dfc696deb5..0000000000 --- a/src/gpu/GrPathRendererChain.h +++ /dev/null @@ -1,69 +0,0 @@ - -/* - * Copyright 2011 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - -#ifndef GrPathRendererChain_DEFINED -#define GrPathRendererChain_DEFINED - -#include "GrDrawTarget.h" -#include "GrRefCnt.h" -#include "SkTArray.h" - -class GrContext; - -class SkPath; -class SkStroke; -class GrPathRenderer; - -/** - * Keeps track of an ordered list of path renderers. When a path needs to be - * drawn this list is scanned to find the most preferred renderer. To add your - * path renderer to the list implement the GrPathRenderer::AddPathRenderers - * function. - */ -class GrPathRendererChain : public SkRefCnt { -public: - SK_DECLARE_INST_COUNT(GrPathRendererChain) - - enum UsageFlags { - kNone_UsageFlag = 0, - kNonAAOnly_UsageFlag = 1, - }; - - GrPathRendererChain(GrContext* context, UsageFlags flags); - - ~GrPathRendererChain(); - - // takes a ref and unrefs in destructor - GrPathRenderer* addPathRenderer(GrPathRenderer* pr); - - GrPathRenderer* getPathRenderer(const SkPath& path, - const SkStroke& stroke, - const GrDrawTarget* target, - bool antiAlias); - -private: - - GrPathRendererChain(); - - void init(); - - enum { - kPreAllocCount = 8, - }; - bool fInit; - GrContext* fOwner; - UsageFlags fFlags; - SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; - - typedef SkRefCnt INHERITED; -}; - -GR_MAKE_BITFIELD_OPS(GrPathRendererChain::UsageFlags) - -#endif |