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

Unified Diff: src/codec/SkSwizzler.h

Issue 1075243003: Implementing filling for SkBmpCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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/SkSwizzler.h
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index 6044c869d2362224960e3cad72e7a88f83f792a9..00aeb7a3793ba87e7d8ab9adfec77ff1afa391e0 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -154,9 +154,13 @@ public:
*
* Other SkColorTypes are not supported.
*
+ * @param bottomUp
+ * If true, this indicates that stream contains rows of the image starting from the
+ * bottom. The rows that need to be filled will be the top rows.
+ *
*/
static void Fill(void* dst, const SkImageInfo& dstInfo, size_t dstRowBytes, uint32_t y,
- uint32_t colorOrIndex, SkPMColor* colorTable);
+ uint32_t colorOrIndex, const SkPMColor* colorTable, bool bottomUp = false);
scroggo 2015/04/10 18:12:43 I think it would be better to use RowOrder (which
msarett 2015/04/10 20:52:56 A new design will take care of this. We will now
/**
* Swizzle the next line. Call height times, once for each row of source.
« no previous file with comments | « src/codec/SkCodec_libbmp.cpp ('k') | src/codec/SkSwizzler.cpp » ('j') | src/codec/SkSwizzler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698