Make SkClipStack::Iter use SkClipStack::Element.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6871051
git-svn-id: http://skia.googlecode.com/svn/trunk@6661 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index 4894a3a..c3a1b5e 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -19,6 +19,7 @@
#include "SkDeque.h"
#include "SkPath.h"
#include "SkRefCnt.h"
+#include "SkTLList.h"
#include "GrClipMaskCache.h"
@@ -125,7 +126,7 @@
bool useSWOnlyPath(const SkClipStack& clipIn);
bool drawClipShape(GrTexture* target,
- const SkClipStack::Iter::Clip* clip,
+ const SkClipStack::Element* element,
const GrIRect& resultBounds);
void mergeMask(GrTexture* dstMask,
@@ -157,9 +158,10 @@
typedef GrNoncopyable INHERITED;
};
-
namespace GrReducedClip {
+typedef SkTLList<SkClipStack::Element> ElementList;
+
enum InitialState {
kAllIn_InitialState,
kAllOut_InitialState,
@@ -175,7 +177,7 @@
* may become a member function of SkClipStack when its interface is determined to be stable.
*/
void GrReduceClipStack(const SkClipStack& stack,
- SkTDArray<SkClipStack::Iter::Clip>* resultClips,
+ ElementList* result,
SkRect* resultBounds,
bool* resultsAreBounded,
InitialState* initialState);