diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-03-23 13:51:55 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-03-23 13:51:55 +0000 |
commit | 0a0a236c3ba241046d38caaf78226ec68ff9c998 (patch) | |
tree | a9c8ac6839a0221126ecb3272f4da7aa0f5d6051 /include/core/SkRegion.h | |
parent | a9ecdadfbcc06ccfd40f13aa2d7b563a64520060 (diff) |
Initialize fClip in SkBounder, in case doIRect() is called before it is used
inside a canvas (which calls setClip).
Export a global empty region. Used by SkBounder's constructor.
git-svn-id: http://skia.googlecode.com/svn/trunk@985 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkRegion.h')
-rw-r--r-- | include/core/SkRegion.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h index ea15dbba46..1dace59120 100644 --- a/include/core/SkRegion.h +++ b/include/core/SkRegion.h @@ -365,7 +365,13 @@ public: * of bytes actually read. */ uint32_t unflatten(const void* buffer); - + + /** + * Returns a reference to a global empty region. Just a convenience for + * callers that need a const empty region. + */ + static const SkRegion& GetEmptyRegion(); + SkDEBUGCODE(void dump() const;) SkDEBUGCODE(void validate() const;) SkDEBUGCODE(static void UnitTest();) |