diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-21 21:08:14 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-21 21:08:14 +0000 |
commit | 2c4e75cc3c0302e0e151d90c74b4c476bfa8a8b5 (patch) | |
tree | 31f9c18cd261ca0afed29436b2a116e51e5c77e6 /include/core/SkMallocPixelRef.h | |
parent | 855e88edfafe4b3892e99f932c38fa7433b2fcbe (diff) |
Remove offset to SkMallocPixelRef::NewWithData - use SkData::NewSubset instead.
R=scroggo@google.com, mtklein@google.com, reed@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/243483002
git-svn-id: http://skia.googlecode.com/svn/trunk@14289 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkMallocPixelRef.h')
-rw-r--r-- | include/core/SkMallocPixelRef.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/core/SkMallocPixelRef.h b/include/core/SkMallocPixelRef.h index f6a57b3dea..ce353080c9 100644 --- a/include/core/SkMallocPixelRef.h +++ b/include/core/SkMallocPixelRef.h @@ -64,9 +64,6 @@ public: * The SkData will be ref()ed and on destruction of the PielRef, * the SkData will be unref()ed. * - * @param offset (in bytes) into the provided SkData that the - * first pixel is located at. - * * This pixelref will ref() the specified colortable (if not NULL). * * Returns NULL on failure. @@ -74,8 +71,7 @@ public: static SkMallocPixelRef* NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, - SkData* data, - size_t offset = 0); + SkData* data); void* getAddr() const { return fStorage; } |