| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void setRGBPixel(void* dst, size_t dstRowBytes, | 83 void setRGBPixel(void* dst, size_t dstRowBytes, |
| 84 const SkImageInfo& dstInfo, uint32_t x, uint32_t y, | 84 const SkImageInfo& dstInfo, uint32_t x, uint32_t y, |
| 85 uint8_t red, uint8_t green, uint8_t blue); | 85 uint8_t red, uint8_t green, uint8_t blue); |
| 86 | 86 |
| 87 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, | 87 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, |
| 88 const Options& opts) override; | 88 const Options& opts) override; |
| 89 | 89 |
| 90 SkSampler* getSampler(bool createIfNecessary) override; | 90 SkSampler* getSampler(bool createIfNecessary) override; |
| 91 | 91 |
| 92 SkAutoTUnref<SkColorTable> fColorTable; // owned | 92 SkAutoTUnref<SkColorTable> fColorTable; // owned |
| 93 // fNumColors is the number specified in the header, or 0 if not present in
the header. |
| 93 const uint32_t fNumColors; | 94 const uint32_t fNumColors; |
| 94 const uint32_t fBytesPerColor; | 95 const uint32_t fBytesPerColor; |
| 95 const uint32_t fOffset; | 96 const uint32_t fOffset; |
| 96 SkAutoTDeleteArray<uint8_t> fStreamBuffer; | 97 SkAutoTDeleteArray<uint8_t> fStreamBuffer; |
| 97 size_t fRLEBytes; | 98 size_t fRLEBytes; |
| 98 uint32_t fCurrRLEByte; | 99 uint32_t fCurrRLEByte; |
| 99 int fSampleX; | 100 int fSampleX; |
| 100 SkAutoTDelete<SkSampler> fSampler; | 101 SkAutoTDelete<SkSampler> fSampler; |
| 101 | 102 |
| 102 typedef SkBmpCodec INHERITED; | 103 typedef SkBmpCodec INHERITED; |
| 103 }; | 104 }; |
| OLD | NEW |