From 2c4e75cc3c0302e0e151d90c74b4c476bfa8a8b5 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 21 Apr 2014 21:08:14 +0000 Subject: 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 --- include/core/SkMallocPixelRef.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/core/SkMallocPixelRef.h') 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; } -- cgit v1.2.3