diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-12-13 09:26:37 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 14:54:42 +0000 |
commit | 76d917cef19aabfdc1247336f58237800bd71875 (patch) | |
tree | 6e6be4dc09150c4d9e8f74bb80c866f5062278ed /include/gpu/GrContext.h | |
parent | 1fbdb61f1389f01ce1cf1b7950e03a84811a9f38 (diff) |
Ensure we flush TextBlobCache message queue.
If we create and delete TextBlobs without actually renderering them,
their deletion messages can back up in the message queue. This adds
a routine to GrContext to ensure these messages get flushed.
Bug: 703297
Change-Id: Icc222373ac2a954dc3b77190cad79070ea562ba2
Reviewed-on: https://skia-review.googlesource.com/82686
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r-- | include/gpu/GrContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 02b26a8aa5..d9ea0a0ce8 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -190,10 +190,10 @@ public: void purgeAllUnlockedResources(); /** - * Purge GPU resources that haven't been used in the past 'ms' milliseconds, regardless of - * whether the context is currently under budget. + * Purge GPU resources that haven't been used in the past 'msNotUsed' milliseconds or are + * otherwise marked for deletion, regardless of whether the context is under budget. */ - void purgeResourcesNotUsedInMs(std::chrono::milliseconds ms); + void performDeferredCleanup(std::chrono::milliseconds msNotUsed); /** * Purge unlocked resources from the cache until the the provided byte count has been reached |