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 #ifndef SkTHash_DEFINED | 8 #ifndef SkTHash_DEFINED |
9 #define SkTHash_DEFINED | 9 #define SkTHash_DEFINED |
10 | 10 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 private: | 284 private: |
285 struct Traits { | 285 struct Traits { |
286 static const T& GetKey(const T& item) { return item; } | 286 static const T& GetKey(const T& item) { return item; } |
287 static uint32_t Hash(const T& item) { return HashT(item); } | 287 static uint32_t Hash(const T& item) { return HashT(item); } |
288 }; | 288 }; |
289 SkTHashTable<T, T, Traits> fTable; | 289 SkTHashTable<T, T, Traits> fTable; |
290 }; | 290 }; |
291 | 291 |
292 #endif//SkTHash_DEFINED | 292 #endif//SkTHash_DEFINED |
OLD | NEW |