aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-31 12:18:16 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-31 12:18:16 +0000
commitf8d904a7eed435b9de68fd2eef6d7f3c59fcc9cc (patch)
treebe009cf03b833cd6e0400bf4bc5ef65de203daf6 /include/gpu
parentc23a63b9e24ac2384466bc4f24ad10f010f25c75 (diff)
GrClip no longer translates its clips (to better mimic SkClipStack's behavior)
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrClip.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h
index d6655dd8e0..bb07c28de1 100644
--- a/include/gpu/GrClip.h
+++ b/include/gpu/GrClip.h
@@ -23,11 +23,7 @@ class GrClip {
public:
GrClip();
GrClip(const GrClip& src);
- /**
- * The conservativeBounds parameter already takes (tx,ty) into account.
- */
- GrClip(GrClipIterator* iter, GrScalar tx, GrScalar ty,
- const GrRect& conservativeBounds);
+ GrClip(GrClipIterator* iter, const GrRect& conservativeBounds);
explicit GrClip(const GrIRect& rect);
explicit GrClip(const GrRect& rect);
@@ -142,20 +138,16 @@ public:
}
}
- // FIXME: This word "empty" is confusing. It means that the clip has no
- // elements (it is the infinite plane) not that it has no area.
- bool isEmpty() const { return 0 == fList.count(); }
+ // isWideOpen returns true if the clip has no elements (it is the
+ // infinite plane) not that it has no area.
+ bool isWideOpen() const { return 0 == fList.count(); }
/**
* Resets this clip to be empty
*/
void setEmpty();
- /**
- * If specified, the bounds parameter already takes (tx,ty) into account.
- */
- void setFromIterator(GrClipIterator* iter, GrScalar tx, GrScalar ty,
- const GrRect& conservativeBounds);
+ void setFromIterator(GrClipIterator* iter, const GrRect& conservativeBounds);
void setFromRect(const GrRect& rect);
void setFromIRect(const GrIRect& rect);