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

Unified Diff: include/codec/SkScanlineDecoder.h

Issue 1305123002: Scanline decoding for gifs (Closed) Base URL: https://skia.googlesource.com/skia.git@real-bmp-scan
Patch Set: 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
Index: include/codec/SkScanlineDecoder.h
diff --git a/include/codec/SkScanlineDecoder.h b/include/codec/SkScanlineDecoder.h
index faf3e275324c1df58b813f559a91aeaf139c7b9f..2b2d76b147171d8af05542f679154a401611b719 100644
--- a/include/codec/SkScanlineDecoder.h
+++ b/include/codec/SkScanlineDecoder.h
@@ -202,7 +202,7 @@ public:
* kOutOfOrder_SkScanlineOrder and should be unnecessary in the case of
* kNone_SkScanlineOrder.
*/
- int getY() const {
+ int getY() {
SkASSERT(kNone_SkScanlineOrder != this->getScanlineOrder());
return this->onGetY();
}
@@ -231,7 +231,7 @@ protected:
/**
* Most images will be kTopDown and will not need to override this function.
*/
- virtual int onGetY() const { return fCurrScanline; }
+ virtual int onGetY() { return fCurrScanline; }
msarett 2015/08/24 23:20:12 The current implementation of SkGifScanlineDecoder
scroggo 2015/08/27 16:35:49 FWIW, it does seem a little odd that it is not con
msarett 2015/09/01 17:50:15 Acknowledged.
const SkImageInfo& dstInfo() const { return fDstInfo; }

Powered by Google App Engine
This is Rietveld 408576698