| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 #ifndef GrAADistanceFieldPathRenderer_DEFINED | 9 #ifndef GrAADistanceFieldPathRenderer_DEFINED |
| 10 #define GrAADistanceFieldPathRenderer_DEFINED | 10 #define GrAADistanceFieldPathRenderer_DEFINED |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 return data.fKey; | 65 return data.fKey; |
| 66 } | 66 } |
| 67 | 67 |
| 68 static inline uint32_t Hash(Key key) { | 68 static inline uint32_t Hash(Key key) { |
| 69 return SkChecksum::Murmur3(reinterpret_cast<const uint32_t*>(&key),
sizeof(key)); | 69 return SkChecksum::Murmur3(reinterpret_cast<const uint32_t*>(&key),
sizeof(key)); |
| 70 } | 70 } |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 static void HandleEviction(GrBatchAtlas::AtlasID, void*); | 73 static void HandleEviction(GrBatchAtlas::AtlasID, void*); |
| 74 | 74 |
| 75 typedef SkTDynamicHash<PathData, PathData::Key> PathCache; |
| 75 typedef SkTInternalLList<PathData> PathDataList; | 76 typedef SkTInternalLList<PathData> PathDataList; |
| 76 | 77 |
| 77 GrContext* fContext; | 78 GrContext* fContext; |
| 78 GrBatchAtlas* fAtlas; | 79 GrBatchAtlas* fAtlas; |
| 79 SkTDynamicHash<PathData, PathData::Key> fPathCache; | 80 PathCache fPathCache; |
| 80 PathDataList fPathList; | 81 PathDataList fPathList; |
| 81 | 82 |
| 82 typedef GrPathRenderer INHERITED; | 83 typedef GrPathRenderer INHERITED; |
| 83 | 84 |
| 84 friend class AADistanceFieldPathBatch; | 85 friend class AADistanceFieldPathBatch; |
| 86 friend struct PathTestStruct; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 #endif | 89 #endif |
| OLD | NEW |