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 #include "SkBmpCodec.h" | 8 #include "SkBmpCodec.h" |
9 #include "SkImageInfo.h" | 9 #include "SkImageInfo.h" |
10 #include "SkMaskSwizzler.h" | 10 #include "SkMaskSwizzler.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 int*) override; | 39 int*) override; |
40 | 40 |
41 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo, | 41 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo, |
42 const SkCodec::Options& options, SkPMColor inputColorPtr[], | 42 const SkCodec::Options& options, SkPMColor inputColorPtr[], |
43 int* inputColorCount) override; | 43 int* inputColorCount) override; |
44 | 44 |
45 private: | 45 private: |
46 | 46 |
47 bool initializeSwizzler(const SkImageInfo& dstInfo); | 47 bool initializeSwizzler(const SkImageInfo& dstInfo); |
48 | 48 |
49 Result decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, | 49 uint32_t decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowByte
s, |
50 const Options& opts) override; | 50 const Options& opts) override; |
51 | 51 |
52 SkAutoTDelete<SkMasks> fMasks; // owned | 52 SkAutoTDelete<SkMasks> fMasks; // owned |
53 SkAutoTDelete<SkMaskSwizzler> fMaskSwizzler; | 53 SkAutoTDelete<SkMaskSwizzler> fMaskSwizzler; |
54 const size_t fSrcRowBytes; | 54 const size_t fSrcRowBytes; |
55 SkAutoTDeleteArray<uint8_t> fSrcBuffer; | 55 SkAutoTDeleteArray<uint8_t> fSrcBuffer; |
56 | 56 |
57 typedef SkBmpCodec INHERITED; | 57 typedef SkBmpCodec INHERITED; |
58 }; | 58 }; |
OLD | NEW |