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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef SkScaledCodec_DEFINED 7 #ifndef SkScaledCodec_DEFINED
8 #define SkScaledCodec_DEFINED 8 #define SkScaledCodec_DEFINED
9 9
10 #include "SkCodec.h" 10 #include "SkCodec.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*) 52 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*)
53 override; 53 override;
54 SkEncodedFormat onGetEncodedFormat() const override { 54 SkEncodedFormat onGetEncodedFormat() const override {
55 return fScanlineDecoder->getEncodedFormat(); 55 return fScanlineDecoder->getEncodedFormat();
56 } 56 }
57 57
58 bool onReallyHasAlpha() const override { 58 bool onReallyHasAlpha() const override {
59 return fScanlineDecoder->reallyHasAlpha(); 59 return fScanlineDecoder->reallyHasAlpha();
60 } 60 }
61 61
62 uint32_t onGetFillValue(const SkImageInfo& dstInfo) const override;
63
64 void* onGetFillDst(void* dst, size_t dstRowBytes, uint32_t decodedScanlines) const override;
65
62 private: 66 private:
63 67
64 SkAutoTDelete<SkScanlineDecoder> fScanlineDecoder; 68 SkAutoTDelete<SkScanlineDecoder> fScanlineDecoder;
65 69
66 explicit SkScaledCodec(SkScanlineDecoder*); 70 explicit SkScaledCodec(SkScanlineDecoder*);
67 71
68 typedef SkCodec INHERITED; 72 typedef SkCodec INHERITED;
69 }; 73 };
70 #endif // SkScaledCodec_DEFINED 74 #endif // SkScaledCodec_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698