Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: src/gpu/GrAADistanceFieldPathRenderer.h

Issue 1129083005: AADistanceFieldPathRenderer unit tests (Closed) Base URL: https://skia.googlesource.com/skia.git@randbatch7
Patch Set: tweaks Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/GrTestUtils.h ('k') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrTestUtils.h ('k') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698