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

Unified Diff: include/codec/SkScaledCodec.h

Issue 1332053002: Fill incomplete images in SkCodec parent class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 5 years, 3 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/SkScaledCodec.h
diff --git a/include/codec/SkScaledCodec.h b/include/codec/SkScaledCodec.h
index 1bcdf085b213f7eaab1cb9d9eca51a491138c58f..66f3dcbbeb4cade766ccba09484fd9f7b0cb1fb6 100644
--- a/include/codec/SkScaledCodec.h
+++ b/include/codec/SkScaledCodec.h
@@ -49,7 +49,7 @@ protected:
*/
SkISize onGetScaledDimensions(float desiredScale) const override;
- Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*)
+ Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*, int*)
override;
SkEncodedFormat onGetEncodedFormat() const override {
return fScanlineDecoder->getEncodedFormat();
@@ -59,6 +59,10 @@ protected:
return fScanlineDecoder->reallyHasAlpha();
}
+ uint32_t onGetFillValue(const SkImageInfo& dstInfo) const override;
+
+ void* onGetFillDst(void* dst, size_t dstRowBytes, uint32_t decodedScanlines) const override;
+
private:
SkAutoTDelete<SkScanlineDecoder> fScanlineDecoder;

Powered by Google App Engine
This is Rietveld 408576698