aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-12-14 07:46:55 -0500
committerGravatar Mike Klein <mtklein@chromium.org>2017-12-14 13:02:09 +0000
commit4b6bde71ecf64850ed76b5bb8b28ee4118d1ce88 (patch)
tree7ce720a3539ac46174f9d237dbe0a1a101946fbb /include
parent43307c09b97c5a5c5174f0c4ccb79bdaf3ebf557 (diff)
add back purgeResourcesNotUsedInMs() temporarily
I think this will let Android roll. Change-Id: If6b602d66bcecd711f4340a620d78cdf27ee825f Reviewed-on: https://skia-review.googlesource.com/84960 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 68514891c4..dd0ceff6a3 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -195,6 +195,11 @@ public:
*/
void performDeferredCleanup(std::chrono::milliseconds msNotUsed);
+ // Temporary compatibility API for Android.
+ void purgeResourcesNotUsedInMs(std::chrono::milliseconds msNotUsed) {
+ this->performDeferredCleanup(msNotUsed);
+ }
+
/**
* Purge unlocked resources from the cache until the the provided byte count has been reached
* or we have purged all unlocked resources. The default policy is to purge in LRU order, but