aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-28 14:35:45 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-28 14:35:45 +0000
commit392c9be344549e809d0468abafdbeb6e32135bcd (patch)
tree20463ae97057623977e1d95c9d284c3db59330e8 /tests
parent0e530754d36d942f6408c65cc93ba0a8ccd93610 (diff)
add new onClip* methods to SkCanvas
Diffstat (limited to 'tests')
-rw-r--r--tests/PictureTest.cpp26
1 files changed, 17 insertions, 9 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 89f0af43fb..c6afb1f9da 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -982,22 +982,30 @@ public:
, fClipCount(0){
}
- virtual bool clipRect(const SkRect& r, SkRegion::Op op, bool doAA)
- SK_OVERRIDE {
+ virtual void onClipRect(const SkRect& r,
+ SkRegion::Op op,
+ ClipEdgeStyle edgeStyle) SK_OVERRIDE {
fClipCount += 1;
- return this->INHERITED::clipRect(r, op, doAA);
+ this->INHERITED::onClipRect(r, op, edgeStyle);
}
- virtual bool clipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA)
- SK_OVERRIDE {
+ virtual void onClipRRect(const SkRRect& rrect,
+ SkRegion::Op op,
+ ClipEdgeStyle edgeStyle)SK_OVERRIDE {
fClipCount += 1;
- return this->INHERITED::clipRRect(rrect, op, doAA);
+ this->INHERITED::onClipRRect(rrect, op, edgeStyle);
}
- virtual bool clipPath(const SkPath& path, SkRegion::Op op, bool doAA)
- SK_OVERRIDE {
+ virtual void onClipPath(const SkPath& path,
+ SkRegion::Op op,
+ ClipEdgeStyle edgeStyle) SK_OVERRIDE {
fClipCount += 1;
- return this->INHERITED::clipPath(path, op, doAA);
+ this->INHERITED::onClipPath(path, op, edgeStyle);
+ }
+
+ virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE {
+ fClipCount += 1;
+ this->INHERITED::onClipRegion(deviceRgn, op);
}
unsigned getClipCount() const { return fClipCount; }