Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/core/SkPixelRef.h

Issue 92793002: Fixed bad bitmap size crashes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Added more randomness to fuzzer and fixed related issues Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkPixelRef.h
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index d90e58719bb0b87f5bd3b5ce9b0dc4c90e056259..76a8f9e2345ad83ba45697926fd8825d4ee2ca90 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -257,6 +257,9 @@ protected:
// default impl returns NULL.
virtual SkData* onRefEncodedData();
+ // default impl returns 0.
reed1 2013/12/03 19:02:50 Lets change the dox to document what this does/ret
sugoi 2013/12/03 19:07:22 I'll add the dox. It should return the allocated s
sugoi 2013/12/03 19:18:06 Done.
+ virtual size_t getSize() const;
+
/** Return the mutex associated with this pixelref. This value is assigned
in the constructor, and cannot change during the lifetime of the object.
*/

Powered by Google App Engine
This is Rietveld 408576698