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

Unified Diff: src/codec/SkMaskSwizzler.h

Issue 1332053002: Fill incomplete images in SkCodec parent class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to Patch Set 11 Created 5 years, 2 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
Index: src/codec/SkMaskSwizzler.h
diff --git a/src/codec/SkMaskSwizzler.h b/src/codec/SkMaskSwizzler.h
index fbc951a070806e954896e56913e863360ca398ee..20b6e2dbe2d476b495acaea6342661f517fd0426 100644
--- a/src/codec/SkMaskSwizzler.h
+++ b/src/codec/SkMaskSwizzler.h
@@ -35,6 +35,15 @@ public:
*/
SkSwizzler::ResultAlpha swizzle(void* dst, const uint8_t* SK_RESTRICT src);
+ /**
+ * Implement fill using a custom width.
+ */
+ void fill(void* dst, const SkImageInfo& info, size_t rowBytes, uint32_t colorOrIndex,
scroggo 2015/10/08 13:50:30 Again, I think this parameter order should match g
msarett 2015/10/08 15:33:25 Changed the parameter order. Yeah on the opposite
+ SkCodec::ZeroInitialized zeroInit) override {
+ const SkImageInfo fillInfo = info.makeWH(fDstWidth, info.height());
+ SkSampler::Fill(dst, fillInfo, rowBytes, colorOrIndex, zeroInit);
+ }
+
private:
/*

Powered by Google App Engine
This is Rietveld 408576698