aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkGlyphCache.h2
-rw-r--r--src/core/SkStrikeCache.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h
index 7d31bf9181..ca6ae8fb09 100644
--- a/src/core/SkGlyphCache.h
+++ b/src/core/SkGlyphCache.h
@@ -32,7 +32,7 @@ class SkTraceMemoryDump;
The Find*Exclusive() method returns SkExclusiveStrikePtr, which releases exclusive ownership
when they go out of scope.
*/
-class SkGlyphCache : private SkStrikeCache::Node<SkGlyphCache> {
+class SkGlyphCache : private SkStrikeCache::Node {
public:
/** Return true if glyph is cached. */
bool isGlyphCached(SkGlyphID glyphID, SkFixed x, SkFixed y) const;
diff --git a/src/core/SkStrikeCache.h b/src/core/SkStrikeCache.h
index 6d5dd3b7bd..078adfe9de 100644
--- a/src/core/SkStrikeCache.h
+++ b/src/core/SkStrikeCache.h
@@ -87,12 +87,11 @@ public:
private:
friend class SkGlyphCache;
- template <typename T>
struct Node {
Node(const SkDescriptor& desc) : fDesc{desc} {}
const SkDescriptor& getDescriptor() const {return *fDesc.getDesc(); }
- T* fNext{nullptr};
- T* fPrev{nullptr};
+ SkGlyphCache* fNext{nullptr};
+ SkGlyphCache* fPrev{nullptr};
SkAutoDescriptor fDesc;
};