diff options
Diffstat (limited to 'src/core/SkClipStack.cpp')
-rw-r--r-- | src/core/SkClipStack.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp index 2b63aea..864f23a 100644 --- a/src/core/SkClipStack.cpp +++ b/src/core/SkClipStack.cpp @@ -116,7 +116,11 @@ void SkClipStack::clipDevPath(const SkPath& path, SkRegion::Op op) { /////////////////////////////////////////////////////////////////////////////// -SkClipStack::B2FIter::B2FIter(const SkClipStack& stack) : fIter(stack.fDeque) { +SkClipStack::B2FIter::B2FIter() { +} + +SkClipStack::B2FIter::B2FIter(const SkClipStack& stack) { + this->reset(stack); } const SkClipStack::B2FIter::Clip* SkClipStack::B2FIter::next() { @@ -142,3 +146,7 @@ const SkClipStack::B2FIter::Clip* SkClipStack::B2FIter::next() { fClip.fOp = rec->fOp; return &fClip; } + +void SkClipStack::B2FIter::reset(const SkClipStack& stack) { + fIter.reset(stack.fDeque); +} |