| 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 "SkColorTable.h" | 9 #include "SkColorTable.h" |
| 10 #include "SkImageInfo.h" | 10 #include "SkImageInfo.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 bool onInIco() const override { | 51 bool onInIco() const override { |
| 52 return fInIco; | 52 return fInIco; |
| 53 } | 53 } |
| 54 | 54 |
| 55 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo, | 55 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo, |
| 56 const SkCodec::Options& options, SkPMColor inputColorPtr[], | 56 const SkCodec::Options& options, SkPMColor inputColorPtr[], |
| 57 int* inputColorCount) override; | 57 int* inputColorCount) override; |
| 58 | 58 |
| 59 | 59 |
| 60 uint32_t onGetFillValue(SkColorType) const override; | 60 uint64_t onGetFillValue(const SkImageInfo&) const override; |
| 61 | 61 |
| 62 SkSampler* getSampler(bool createIfNecessary) override { | 62 SkSampler* getSampler(bool createIfNecessary) override { |
| 63 SkASSERT(fSwizzler); | 63 SkASSERT(fSwizzler); |
| 64 return fSwizzler; | 64 return fSwizzler; |
| 65 } | 65 } |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 | 68 |
| 69 /* | 69 /* |
| 70 * Creates the color table | 70 * Creates the color table |
| (...skipping 19 matching lines...) Expand all Loading... |
| 90 const uint32_t fBytesPerColor; | 90 const uint32_t fBytesPerColor; |
| 91 const uint32_t fOffset; | 91 const uint32_t fOffset; |
| 92 SkAutoTDelete<SkSwizzler> fSwizzler; | 92 SkAutoTDelete<SkSwizzler> fSwizzler; |
| 93 SkAutoTDeleteArray<uint8_t> fSrcBuffer; | 93 SkAutoTDeleteArray<uint8_t> fSrcBuffer; |
| 94 const bool fIsOpaque; | 94 const bool fIsOpaque; |
| 95 const bool fInIco; | 95 const bool fInIco; |
| 96 const size_t fAndMaskRowBytes; // only used for fInIc
o decodes | 96 const size_t fAndMaskRowBytes; // only used for fInIc
o decodes |
| 97 | 97 |
| 98 typedef SkBmpCodec INHERITED; | 98 typedef SkBmpCodec INHERITED; |
| 99 }; | 99 }; |
| OLD | NEW |