| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |