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 |
11 #include "SkCodec.h" | 11 #include "SkCodec.h" |
| 12 #include "SkColorSpace.h" |
12 #include "SkSwizzler.h" | 13 #include "SkSwizzler.h" |
13 | 14 |
14 class SkWbmpCodec final : public SkCodec { | 15 class SkWbmpCodec final : public SkCodec { |
15 public: | 16 public: |
16 static bool IsWbmp(const void*, size_t); | 17 static bool IsWbmp(const void*, size_t); |
17 | 18 |
18 /* | 19 /* |
19 * Assumes IsWbmp was called and returned true | 20 * Assumes IsWbmp was called and returned true |
20 * Creates a wbmp codec | 21 * Creates a wbmp codec |
21 * Takes ownership of the stream | 22 * Takes ownership of the stream |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 55 |
55 int onGetScanlines(void* dst, int count, size_t dstRowBytes) override; | 56 int onGetScanlines(void* dst, int count, size_t dstRowBytes) override; |
56 bool onSkipScanlines(int count) override; | 57 bool onSkipScanlines(int count) override; |
57 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opti
ons, | 58 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opti
ons, |
58 SkPMColor inputColorTable[], int* inputColorCount) override; | 59 SkPMColor inputColorTable[], int* inputColorCount) override; |
59 | 60 |
60 typedef SkCodec INHERITED; | 61 typedef SkCodec INHERITED; |
61 }; | 62 }; |
62 | 63 |
63 #endif // SkCodec_wbmp_DEFINED | 64 #endif // SkCodec_wbmp_DEFINED |
OLD | NEW |