Altered Ganesh's clip stack plumbing to pass down new GrClipData class
http://codereview.appspot.com/6454047/
git-svn-id: http://skia.googlecode.com/svn/trunk@4788 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index a51e2cf..3fb6201 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -73,14 +73,14 @@
*
* @param description of the clipping region
*/
- void setClip(const GrClip& clip);
+ void setClip(const GrClipData* clip);
/**
* Gets the current clip.
*
* @return the clip.
*/
- const GrClip& getClip() const;
+ const GrClipData* getClip() const;
/**
* Sets the draw state object for the draw target. Note that this does not
@@ -641,8 +641,8 @@
fTarget->setClip(fClip);
}
private:
- GrDrawTarget* fTarget;
- GrClip fClip;
+ GrDrawTarget* fTarget;
+ const GrClipData* fClip;
};
////////////////////////////////////////////////////////////////////////////
@@ -987,7 +987,7 @@
// subclass overrides to be notified when clip is set. Must call
// INHERITED::clipwillBeSet
- virtual void clipWillBeSet(const GrClip& clip) {}
+ virtual void clipWillBeSet(const GrClipData* clipData) {}
// Helpers for drawRect, protected so subclasses that override drawRect
// can use them.
@@ -1013,7 +1013,7 @@
return this->getGeomSrc().fVertexLayout;
}
- GrClip fClip;
+ const GrClipData* fClip;
GrDrawState* fDrawState;
GrDrawState fDefaultDrawState;