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 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) { | 81 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) { |
82 return glyph.fPackedID; | 82 return glyph.fPackedID; |
83 } | 83 } |
84 | 84 |
85 static inline uint32_t Hash(GrGlyph::PackedID key) { | 85 static inline uint32_t Hash(GrGlyph::PackedID key) { |
86 return SkChecksum::Murmur3(&key, sizeof(key)); | 86 return SkChecksum::Murmur3(&key, sizeof(key)); |
87 } | 87 } |
88 }; | 88 }; |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |