OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkColorTable_DEFINED | 10 #ifndef SkColorTable_DEFINED |
11 #define SkColorTable_DEFINED | 11 #define SkColorTable_DEFINED |
12 | 12 |
13 #include "SkAlpha.h" | |
14 #include "SkColor.h" | 13 #include "SkColor.h" |
15 #include "SkFlattenable.h" | 14 #include "SkFlattenable.h" |
| 15 #include "SkImageInfo.h" |
16 | 16 |
17 /** \class SkColorTable | 17 /** \class SkColorTable |
18 | 18 |
19 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by | 19 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by |
20 8-bit bitmaps, where the bitmap bytes are interpreted as indices into the co
lortable. | 20 8-bit bitmaps, where the bitmap bytes are interpreted as indices into the co
lortable. |
21 */ | 21 */ |
22 class SkColorTable : public SkRefCnt { | 22 class SkColorTable : public SkRefCnt { |
23 public: | 23 public: |
24 SK_DECLARE_INST_COUNT(SkColorTable) | 24 SK_DECLARE_INST_COUNT(SkColorTable) |
25 | 25 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 uint8_t fAlphaType; | 85 uint8_t fAlphaType; |
86 SkDEBUGCODE(int fColorLockCount;) | 86 SkDEBUGCODE(int fColorLockCount;) |
87 SkDEBUGCODE(int f16BitCacheLockCount;) | 87 SkDEBUGCODE(int f16BitCacheLockCount;) |
88 | 88 |
89 void inval16BitCache(); | 89 void inval16BitCache(); |
90 | 90 |
91 typedef SkRefCnt INHERITED; | 91 typedef SkRefCnt INHERITED; |
92 }; | 92 }; |
93 | 93 |
94 #endif | 94 #endif |
OLD | NEW |