aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStrikeCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkStrikeCache.h')
-rw-r--r--src/core/SkStrikeCache.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/core/SkStrikeCache.h b/src/core/SkStrikeCache.h
index 3e199da1e9..df048e33be 100644
--- a/src/core/SkStrikeCache.h
+++ b/src/core/SkStrikeCache.h
@@ -9,6 +9,7 @@
#define SkStrikeCache_DEFINED
#include <unordered_map>
+#include <unordered_set>
#include "SkDescriptor.h"
#include "SkSpinlock.h"
@@ -31,24 +32,6 @@ class SkTraceMemoryDump;
///////////////////////////////////////////////////////////////////////////////
-struct SkDescriptorMapOperators {
- size_t operator()(const SkDescriptor* key) const {
- return key->getChecksum();
- }
-
- bool operator()(const SkDescriptor* lhs, const SkDescriptor* rhs) const {
- return *lhs == *rhs;
- }
-};
-
-template <typename T>
-using SkDescriptorMap =
- std::unordered_map<
- const SkDescriptor*,
- T,
- SkDescriptorMapOperators,
- SkDescriptorMapOperators>;
-
class SkStrikePinner {
public:
virtual ~SkStrikePinner() = default;