aboutsummaryrefslogtreecommitdiffstats
path: root/include/core/SkClipStack.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkClipStack.h')
-rw-r--r--include/core/SkClipStack.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
index 6e8da76..fc96f03 100644
--- a/include/core/SkClipStack.h
+++ b/include/core/SkClipStack.h
@@ -1,3 +1,10 @@
+
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
#ifndef SkClipStack_DEFINED
#define SkClipStack_DEFINED
@@ -27,10 +34,10 @@ public:
SkRegion::Op op = SkRegion::kIntersect_Op) {
SkRect r;
r.set(ir);
- this->clipDevRect(r, op);
+ this->clipDevRect(r, op, false);
}
- void clipDevRect(const SkRect&, SkRegion::Op = SkRegion::kIntersect_Op);
- void clipDevPath(const SkPath&, SkRegion::Op = SkRegion::kIntersect_Op);
+ void clipDevRect(const SkRect&, SkRegion::Op, bool doAA);
+ void clipDevPath(const SkPath&, SkRegion::Op, bool doAA);
class B2FIter {
public:
@@ -42,11 +49,13 @@ public:
B2FIter(const SkClipStack& stack);
struct Clip {
+ Clip() : fRect(NULL), fPath(NULL), fOp(SkRegion::kIntersect_Op) {}
friend bool operator==(const Clip& a, const Clip& b);
friend bool operator!=(const Clip& a, const Clip& b);
const SkRect* fRect; // if non-null, this is a rect clip
const SkPath* fPath; // if non-null, this is a path clip
SkRegion::Op fOp;
+ bool fDoAA;
};
/**