| 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 "SkCodec.h" | 8 #include "SkCodec.h" |
| 9 #include "SkColorTable.h" | 9 #include "SkColorTable.h" |
| 10 #include "SkImageInfo.h" | 10 #include "SkImageInfo.h" |
| 11 #include "SkMaskSwizzler.h" | 11 #include "SkMaskSwizzler.h" |
| 12 #include "SkStream.h" | 12 #include "SkStream.h" |
| 13 #include "SkSwizzler.h" | 13 #include "SkSwizzler.h" |
| 14 #include "SkTypes.h" | 14 #include "SkTypes.h" |
| 15 | 15 |
| 16 // TODO: rename SkCodec_libbmp files to SkBmpCodec | 16 // TODO: rename SkCodec_libbmp files to SkBmpCodec |
| 17 // TODO: define a wrapper for SkDebugf that doesn't always print | |
| 18 /* | 17 /* |
| 19 * | 18 * |
| 20 * This class implements the decoding for bmp images | 19 * This class implements the decoding for bmp images |
| 21 * | 20 * |
| 22 */ | 21 */ |
| 23 class SkBmpCodec : public SkCodec { | 22 class SkBmpCodec : public SkCodec { |
| 24 public: | 23 public: |
| 25 | 24 |
| 26 /* | 25 /* |
| 27 * | 26 * |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 SkAutoTDelete<SkColorTable> fColorTable; // owned | 174 SkAutoTDelete<SkColorTable> fColorTable; // owned |
| 176 uint32_t fNumColors; | 175 uint32_t fNumColors; |
| 177 const uint32_t fBytesPerColor; | 176 const uint32_t fBytesPerColor; |
| 178 const uint32_t fOffset; | 177 const uint32_t fOffset; |
| 179 const RowOrder fRowOrder; | 178 const RowOrder fRowOrder; |
| 180 const size_t fRLEBytes; | 179 const size_t fRLEBytes; |
| 181 const bool fIsIco; | 180 const bool fIsIco; |
| 182 | 181 |
| 183 typedef SkCodec INHERITED; | 182 typedef SkCodec INHERITED; |
| 184 }; | 183 }; |
| OLD | NEW |