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

Unified Diff: src/codec/SkMaskSwizzler.h

Issue 1287423002: Scanline decoding for bmp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix windows errors Created 5 years, 4 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/SkJpegCodec.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 9f4dd440aa27e5b5961065f28cd5f0348d6a0524..794dcd16e498e8948a1065ba6e29bb31bdc8361a 100644
--- a/src/codec/SkMaskSwizzler.h
+++ b/src/codec/SkMaskSwizzler.h
@@ -24,7 +24,8 @@ public:
* Create a new swizzler
* @param masks Unowned pointer to helper class
*/
- static SkMaskSwizzler* CreateMaskSwizzler(const SkImageInfo& imageInfo,
+ static SkMaskSwizzler* CreateMaskSwizzler(const SkImageInfo& dstInfo,
+ const SkImageInfo& srcInfo,
SkMasks* masks,
uint32_t bitsPerPixel);
@@ -40,17 +41,20 @@ private:
*/
typedef SkSwizzler::ResultAlpha (*RowProc)(
void* dstRow, const uint8_t* srcRow, int width,
- SkMasks* masks);
+ SkMasks* masks, uint32_t startX, uint32_t sampleX);
/*
* Constructor for mask swizzler
*/
- SkMaskSwizzler(const SkImageInfo& info, SkMasks* masks, RowProc proc);
+ SkMaskSwizzler(const SkImageInfo& info, SkMasks* masks, RowProc proc,
+ uint32_t sampleX);
// Fields
const SkImageInfo& fDstInfo;
SkMasks* fMasks; // unowned
const RowProc fRowProc;
+ const uint32_t fSampleX;
+ const uint32_t fStartX;
};
#endif
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkMaskSwizzler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698