external/swiftshader
Revision | efca5651464de0849e48743aab523ae178be354b (tree) |
---|---|
Time | 2020-04-15 02:42:20 |
Author | Ben Clayton <bclayton@goog...> |
Commiter | Ben Clayton |
Device: Rename RoutineCacheT to RoutineCache
RoutineCache was not used, remove it.
Rename RoutineCacheT to the now unused name RoutineCache.
Bug: b/126126820
Change-Id: I656c1727446754b2063033806634678b14485b6f
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43816
Tested-by: Ben Clayton <bclayton@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
@@ -186,9 +186,9 @@ private: | ||
186 | 186 | const VkImageSubresourceLayers &srcSubresourceLayers, Edge srcEdge); |
187 | 187 | |
188 | 188 | std::mutex blitMutex; |
189 | - RoutineCacheT<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex | |
189 | + RoutineCache<State, BlitFunction::CFunctionType> blitCache; // guarded by blitMutex | |
190 | 190 | std::mutex cornerUpdateMutex; |
191 | - RoutineCacheT<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex | |
191 | + RoutineCache<State, CornerUpdateFunction::CFunctionType> cornerUpdateCache; // guarded by cornerUpdateMutex | |
192 | 192 | }; |
193 | 193 | |
194 | 194 | } // namespace sw |
@@ -159,7 +159,7 @@ public: | ||
159 | 159 | Factor factor; |
160 | 160 | |
161 | 161 | private: |
162 | - using RoutineCacheType = RoutineCacheT<State, RasterizerFunction::CFunctionType>; | |
162 | + using RoutineCacheType = RoutineCache<State, RasterizerFunction::CFunctionType>; | |
163 | 163 | RoutineCacheType *routineCache; |
164 | 164 | }; |
165 | 165 |
@@ -23,11 +23,8 @@ namespace sw { | ||
23 | 23 | |
24 | 24 | using namespace rr; |
25 | 25 | |
26 | -template<class State> | |
27 | -using RoutineCache = LRUCache<State, std::shared_ptr<Routine>>; | |
28 | - | |
29 | 26 | template<class State, class FunctionType> |
30 | -using RoutineCacheT = LRUCache<State, RoutineT<FunctionType>>; | |
27 | +using RoutineCache = LRUCache<State, RoutineT<FunctionType>>; | |
31 | 28 | |
32 | 29 | } // namespace sw |
33 | 30 |
@@ -79,7 +79,7 @@ public: | ||
79 | 79 | void setRoutineCacheSize(int cacheSize); |
80 | 80 | |
81 | 81 | private: |
82 | - using RoutineCacheType = RoutineCacheT<State, SetupFunction::CFunctionType>; | |
82 | + using RoutineCacheType = RoutineCache<State, SetupFunction::CFunctionType>; | |
83 | 83 | RoutineCacheType *routineCache; |
84 | 84 | }; |
85 | 85 |
@@ -100,7 +100,7 @@ public: | ||
100 | 100 | void setRoutineCacheSize(int cacheSize); |
101 | 101 | |
102 | 102 | private: |
103 | - using RoutineCacheType = RoutineCacheT<State, VertexRoutineFunction::CFunctionType>; | |
103 | + using RoutineCacheType = RoutineCache<State, VertexRoutineFunction::CFunctionType>; | |
104 | 104 | RoutineCacheType *routineCache; |
105 | 105 | }; |
106 | 106 |