diff options
author | Herb Derby <herb@google.com> | 2018-06-01 16:47:21 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-04 15:23:29 +0000 |
commit | feb9fa9e9ba47ec4a4e6480d90a88ad5cdb46020 (patch) | |
tree | 5a39a775f1ef0d6142f1a81c5b21c5109a390e84 /src/core/SkRemoteGlyphCache.cpp | |
parent | e1adc3a9552c21e7b45b7a910f2a0854e00a92b9 (diff) |
Turn off logging for tests
Change-Id: I00bb3059bb92b5c11178022aff8a87918bb3781e
Reviewed-on: https://skia-review.googlesource.com/131640
Reviewed-by: Khushal Sagar <khushalsagar@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/core/SkRemoteGlyphCache.cpp')
-rw-r--r-- | src/core/SkRemoteGlyphCache.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/SkRemoteGlyphCache.cpp b/src/core/SkRemoteGlyphCache.cpp index 6e0c61e01f..922014b173 100644 --- a/src/core/SkRemoteGlyphCache.cpp +++ b/src/core/SkRemoteGlyphCache.cpp @@ -651,8 +651,9 @@ private: sk_sp<DiscardableHandleManager> fManager; }; -SkStrikeClient::SkStrikeClient(sk_sp<DiscardableHandleManager> discardableManager) - : fDiscardableHandleManager(std::move(discardableManager)) {} +SkStrikeClient::SkStrikeClient(sk_sp<DiscardableHandleManager> discardableManager, bool isLogging) + : fDiscardableHandleManager(std::move(discardableManager)) + , fIsLogging{isLogging} {} SkStrikeClient::~SkStrikeClient() = default; @@ -780,8 +781,9 @@ sk_sp<SkTypeface> SkStrikeClient::addTypeface(const WireTypeface& wire) { auto* typeface = fRemoteFontIdToTypeface.find(wire.typefaceID); if (typeface) return *typeface; - auto newTypeface = sk_make_sp<SkTypefaceProxy>(wire.typefaceID, wire.glyphCount, wire.style, - wire.isFixed, fDiscardableHandleManager); + auto newTypeface = sk_make_sp<SkTypefaceProxy>( + wire.typefaceID, wire.glyphCount, wire.style, wire.isFixed, + fDiscardableHandleManager, fIsLogging); fRemoteFontIdToTypeface.set(wire.typefaceID, newTypeface); return std::move(newTypeface); } |