diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-30 13:29:02 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-30 13:29:02 +0000 |
commit | 7d4aee34e23e536e1115f132d20a20fb629bb66a (patch) | |
tree | 5d232e05115c084cba460eb7c212babf7a3a326f /include/core/SkRegion.h | |
parent | 6720d50d3329bd12b5986c4713e46b2b04423c52 (diff) |
Variant of SkRegion::op (called Oper) that either writes the result into a 3rd
region (normal mode) or does a quick-return if the result will be non-empty
(called for predicates like contains() and intersects()).
git-svn-id: http://skia.googlecode.com/svn/trunk@3791 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkRegion.h')
-rw-r--r-- | include/core/SkRegion.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h index 7623b82262..f957cb5795 100644 --- a/include/core/SkRegion.h +++ b/include/core/SkRegion.h @@ -401,6 +401,12 @@ private: static bool ComputeRunBounds(const RunType runs[], int count, SkIRect* bounds); + /** + * If the last arg is null, just return if the result is non-empty, + * else store the result in the last arg. + */ + static bool Oper(const SkRegion&, const SkRegion&, SkRegion::Op, SkRegion*); + friend struct RunHead; friend class Iterator; friend class Spanerator; |