diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-04 18:06:12 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-04 18:06:12 +0000 |
commit | eb221268ab1067af7c48e04a75147d4bcca87191 (patch) | |
tree | a561113063c1019ef55fb03520ceac80ff8db1aa /include/core/SkRegion.h | |
parent | 305f78e8c18a26b7ead11758d6a4fa0519932cca (diff) |
Revert r12114 due to https://code.google.com/p/skia/issues/detail?id=1794 ('Assertion failures on various buildbots as of r12114')
git-svn-id: http://skia.googlecode.com/svn/trunk@12115 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkRegion.h')
-rw-r--r-- | include/core/SkRegion.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/core/SkRegion.h b/include/core/SkRegion.h index c9aa8daf88..a088d54620 100644 --- a/include/core/SkRegion.h +++ b/include/core/SkRegion.h @@ -361,16 +361,13 @@ public: * Write the region to the buffer, and return the number of bytes written. * If buffer is NULL, it still returns the number of bytes. */ - size_t writeToMemory(void* buffer) const; + uint32_t writeToMemory(void* buffer) const; + /** - * Initializes the region from the buffer - * - * @param buffer Memory to read from - * @param length Amount of memory available in the buffer - * @return number of bytes read (must be a multiple of 4) or - * 0 if there was not enough memory available + * Initialized the region from the buffer, returning the number + * of bytes actually read. */ - size_t readFromMemory(const void* buffer, size_t length); + uint32_t readFromMemory(const void* buffer); /** * Returns a reference to a global empty region. Just a convenience for |