diff options
author | 2018-06-20 14:43:23 -0400 | |
---|---|---|
committer | 2018-06-20 20:24:47 +0000 | |
commit | 3e36ce6e660ad585c58c5cc5591f23a46fcab767 (patch) | |
tree | 1a63f02ccef4ba8414997378b5dff225750b44a7 /src/core/SkRemoteGlyphCache.h | |
parent | b70e3b4831398aff696b9e15ad7e8f581db8aa9d (diff) |
Make SkRemoteGlyphCache tests use private glyph cache
Change-Id: If6aa189f3badc7558ab8ecf71ee3d704b275b20f
Reviewed-on: https://skia-review.googlesource.com/136225
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/core/SkRemoteGlyphCache.h')
-rw-r--r-- | src/core/SkRemoteGlyphCache.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/SkRemoteGlyphCache.h b/src/core/SkRemoteGlyphCache.h index ac13920772..f09228fd1e 100644 --- a/src/core/SkRemoteGlyphCache.h +++ b/src/core/SkRemoteGlyphCache.h @@ -20,7 +20,6 @@ #include "SkMakeUnique.h" #include "SkNoDrawCanvas.h" #include "SkRefCnt.h" -#include "SkRemoteGlyphCache.h" #include "SkSerialProcs.h" #include "SkTypeface.h" @@ -30,6 +29,7 @@ class SkGlyphCache; struct SkPackedGlyphID; enum SkScalerContextFlags : uint32_t; class SkScalerContextRecDescriptor; +class SkStrikeCache; class SkTextBlobRunIterator; class SkTypefaceProxy; struct WireTypeface; @@ -212,7 +212,9 @@ public: virtual void notifyCacheMiss(CacheMissType) {} }; - SkStrikeClient(sk_sp<DiscardableHandleManager>, bool isLogging = true); + SkStrikeClient(sk_sp<DiscardableHandleManager>, + bool isLogging = true, + SkStrikeCache* strikeCache = nullptr); ~SkStrikeClient(); // Deserializes the typeface previously serialized using the SkStrikeServer. Returns null if the @@ -223,7 +225,9 @@ public: // from a server when serializing the ops must be deserialized before the op // is rasterized. // Returns false if the data is invalid. - bool readStrikeData(const volatile void* memory, size_t memorySize); + bool readStrikeData( + const volatile void* memory, + size_t memorySize); private: class DiscardableStrikePinner; @@ -232,6 +236,7 @@ private: SkTHashMap<SkFontID, sk_sp<SkTypeface>> fRemoteFontIdToTypeface; sk_sp<DiscardableHandleManager> fDiscardableHandleManager; + SkStrikeCache* const fStrikeCache; const bool fIsLogging; }; |