OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 #ifndef GrGlyph_DEFINED | 8 #ifndef GrGlyph_DEFINED |
9 #define GrGlyph_DEFINED | 9 #define GrGlyph_DEFINED |
10 | 10 |
11 #include "GrBatchAtlas.h" | 11 #include "GrBatchAtlas.h" |
12 #include "GrRect.h" | 12 #include "GrRect.h" |
13 #include "GrTypes.h" | 13 #include "GrTypes.h" |
14 | 14 |
15 #include "SkChecksum.h" | 15 #include "SkChecksum.h" |
| 16 #include "SkFixed.h" |
16 #include "SkPath.h" | 17 #include "SkPath.h" |
17 | 18 |
18 class GrPlot; | 19 class GrPlot; |
19 | 20 |
20 /* Need this to be quad-state: | 21 /* Need this to be quad-state: |
21 - complete w/ image | 22 - complete w/ image |
22 - just metrics | 23 - just metrics |
23 - failed to get image, but has metrics | 24 - failed to get image, but has metrics |
24 - failed to get metrics | 25 - failed to get metrics |
25 */ | 26 */ |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) { | 95 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) { |
95 return glyph.fPackedID; | 96 return glyph.fPackedID; |
96 } | 97 } |
97 | 98 |
98 static inline uint32_t Hash(GrGlyph::PackedID key) { | 99 static inline uint32_t Hash(GrGlyph::PackedID key) { |
99 return SkChecksum::Mix(key); | 100 return SkChecksum::Mix(key); |
100 } | 101 } |
101 }; | 102 }; |
102 | 103 |
103 #endif | 104 #endif |
OLD | NEW |