add origin to device
used for interpreting the clipstack when a device is a layer
git-svn-id: http://skia.googlecode.com/svn/trunk@894 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrClip.h b/gpu/include/GrClip.h
index 414a6d6..64c9bbb 100644
--- a/gpu/include/GrClip.h
+++ b/gpu/include/GrClip.h
@@ -28,7 +28,11 @@
public:
GrClip();
GrClip(const GrClip& src);
- GrClip(GrClipIterator* iter, const GrRect* bounds = NULL);
+ /**
+ * If specified, the bounds parameter already takes (tx,ty) into account.
+ */
+ GrClip(GrClipIterator* iter, GrScalar tx, GrScalar ty,
+ const GrRect* bounds = NULL);
GrClip(const GrIRect& rect);
GrClip(const GrRect& rect);
@@ -77,7 +81,12 @@
* Resets this clip to be empty
*/
void setEmpty();
- void setFromIterator(GrClipIterator* iter, const GrRect* bounds = NULL);
+
+ /**
+ * If specified, the bounds parameter already takes (tx,ty) into account.
+ */
+ void setFromIterator(GrClipIterator* iter, GrScalar tx, GrScalar ty,
+ const GrRect* bounds = NULL);
void setFromRect(const GrRect& rect);
void setFromIRect(const GrIRect& rect);