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 | 7 |
8 #ifndef SkCodec_wbmp_DEFINED | 8 #ifndef SkCodec_wbmp_DEFINED |
9 #define SkCodec_wbmp_DEFINED | 9 #define SkCodec_wbmp_DEFINED |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 SkWbmpCodec(const SkImageInfo&, SkStream*); | 46 SkWbmpCodec(const SkImageInfo&, SkStream*); |
47 | 47 |
48 const size_t fSrcRowBytes; | 48 const size_t fSrcRowBytes; |
49 | 49 |
50 // Used for scanline decodes: | 50 // Used for scanline decodes: |
51 SkAutoTDelete<SkSwizzler> fSwizzler; | 51 SkAutoTDelete<SkSwizzler> fSwizzler; |
52 SkAutoTUnref<SkColorTable> fColorTable; | 52 SkAutoTUnref<SkColorTable> fColorTable; |
53 SkAutoTMalloc<uint8_t> fSrcBuffer; | 53 SkAutoTMalloc<uint8_t> fSrcBuffer; |
54 | 54 |
55 // FIXME: Override onSkipScanlines to avoid swizzling. | |
56 int onGetScanlines(void* dst, int count, size_t dstRowBytes) override; | 55 int onGetScanlines(void* dst, int count, size_t dstRowBytes) override; |
| 56 bool onSkipScanlines(int count) override; |
57 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opti
ons, | 57 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opti
ons, |
58 SkPMColor inputColorTable[], int* inputColorCount) override; | 58 SkPMColor inputColorTable[], int* inputColorCount) override; |
59 | 59 |
60 typedef SkCodec INHERITED; | 60 typedef SkCodec INHERITED; |
61 }; | 61 }; |
62 | 62 |
63 #endif // SkCodec_wbmp_DEFINED | 63 #endif // SkCodec_wbmp_DEFINED |
OLD | NEW |