commit | 5480a18d8799511034d0da219c72932cd8f25274 | [log] [tgz] |
---|---|---|
author | Derek Sollenberger <djsollen@google.com> | Thu May 25 16:43:59 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri May 26 18:14:33 2017 +0000 |
tree | 0be82d1f2275f2df75a5bf77eb330fadf677166b | |
parent | dc8c34455849574e4e0260ea35485f093723c10d [diff] |
Add method to GrContext to purge unlocked resources. Beyond setting the total cache limits this method enables clients to request to purge a specific number of bytes, as well as specify their preference to purge scratch resources over resources of other types. Change-Id: I9259d5544d34251575d77eebe599388f213ff3ce Reviewed-on: https://skia-review.googlesource.com/17987 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Derek Sollenberger <djsollen@google.com>