diff options
author | reed <reed@google.com> | 2014-07-01 12:48:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-01 12:48:11 -0700 |
commit | f0aed97aec3fa1c7f6460d8d6327358f3dcbabe6 (patch) | |
tree | bed25aabeca446338941bdf4fa9d2725ae9c4f52 /include/core | |
parent | c846f4a96bcde1ffeaf17afc1469db6f2cbd1ad3 (diff) |
correctly plumb through explicit rowbytes for allocPixels
BUG=skia:
R=caryclark@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/357073003
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkMallocPixelRef.h | 1 | ||||
-rw-r--r-- | include/core/SkPixelRef.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkMallocPixelRef.h b/include/core/SkMallocPixelRef.h index ce353080c9..2db81bb31b 100644 --- a/include/core/SkMallocPixelRef.h +++ b/include/core/SkMallocPixelRef.h @@ -78,6 +78,7 @@ public: class PRFactory : public SkPixelRefFactory { public: virtual SkPixelRef* create(const SkImageInfo&, + size_t rowBytes, SkColorTable*) SK_OVERRIDE; }; diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index 339cea192a..842f493d47 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -374,7 +374,7 @@ public: * the pixelref will ref() the colortable. * On failure return NULL. */ - virtual SkPixelRef* create(const SkImageInfo&, SkColorTable*) = 0; + virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) = 0; }; #endif |