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

Unified Diff: src/codec/SkMaskSwizzler.h

Issue 1256373002: Pass the destination pointer to next (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Thanks windows bot! Created 5 years, 5 months 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
« no previous file with comments | « src/codec/SkCodec_libpng.cpp ('k') | src/codec/SkMaskSwizzler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkMaskSwizzler.h
diff --git a/src/codec/SkMaskSwizzler.h b/src/codec/SkMaskSwizzler.h
index 69103023c63e06c7df65427a685382b146d48a04..4ccc3ae4a427a1275401c859b53f4570f975be1c 100644
--- a/src/codec/SkMaskSwizzler.h
+++ b/src/codec/SkMaskSwizzler.h
@@ -25,16 +25,15 @@ public:
*
*/
static SkMaskSwizzler* CreateMaskSwizzler(const SkImageInfo& imageInfo,
- void* dst, size_t dstRowBytes,
SkMasks* masks,
uint32_t bitsPerPixel);
/*
*
- * Swizzle the row with the specified y value
+ * Swizzle a row
*
*/
- SkSwizzler::ResultAlpha next(const uint8_t* SK_RESTRICT src, int y);
+ SkSwizzler::ResultAlpha swizzle(void* dst, const uint8_t* SK_RESTRICT src);
private:
@@ -52,13 +51,10 @@ private:
* Constructor for mask swizzler
*
*/
- SkMaskSwizzler(const SkImageInfo& info, void* dst, size_t dstRowBytes,
- SkMasks* masks, RowProc proc);
+ SkMaskSwizzler(const SkImageInfo& info, SkMasks* masks, RowProc proc);
// Fields
const SkImageInfo& fDstInfo;
- void* fDst;
- size_t fDstRowBytes;
SkMasks* fMasks; // unowned
const RowProc fRowProc;
};
« no previous file with comments | « src/codec/SkCodec_libpng.cpp ('k') | src/codec/SkMaskSwizzler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698