aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTextBlob.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-12-14 13:00:05 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-14 18:52:49 +0000
commit474d68791965f20f8e0dfa2bfb4d87300f1f29e0 (patch)
tree538b3b1687625848ced2a730dfa5fb8355a76e3e /include/core/SkTextBlob.h
parentde2b95ea976afa55e6dd41e3ad24b092faa33ae2 (diff)
Send TextBlobCache purge messages only to owning cache.
Bug: 703297 Change-Id: I95cdaa5bdebadd5ce88ae3ee468c59baa08353c6 Reviewed-on: https://skia-review.googlesource.com/85046 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'include/core/SkTextBlob.h')
-rw-r--r--include/core/SkTextBlob.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h
index 228747a1c8..b27ec87773 100644
--- a/include/core/SkTextBlob.h
+++ b/include/core/SkTextBlob.h
@@ -98,17 +98,17 @@ private:
// Call when this blob is part of the key to a cache entry. This allows the cache
// to know automatically those entries can be purged when this SkTextBlob is deleted.
- void notifyAddedToCache() const {
- fAddedToCache.store(true);
+ void notifyAddedToCache(uint32_t cacheID) const {
+ fCacheID.store(cacheID);
}
friend class GrTextBlobCache;
friend class SkTextBlobBuilder;
friend class SkTextBlobRunIterator;
- const SkRect fBounds;
- const uint32_t fUniqueID;
- mutable SkAtomic<bool> fAddedToCache;
+ const SkRect fBounds;
+ const uint32_t fUniqueID;
+ mutable SkAtomic<uint32_t> fCacheID;
SkDEBUGCODE(size_t fStorageSize;)