diff options
author | bsalomon <bsalomon@google.com> | 2016-04-01 11:54:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-01 11:54:31 -0700 |
commit | 6e2aad4e9f6280aa2b710e7324458fdc6d699ec5 (patch) | |
tree | 77bf09c049b5afe4aaccd66b7926050c53bbebff /tools/gpu/GrContextFactory.h | |
parent | 895f3f0544ce38d35999771754cbb1d876c14b5a (diff) |
Add GrContext::releaseAndAbandonContext()
Like abandonContext() this disconnects the GrContext from the underlying 3D API. However, unlike abandonContext it first frees all allocated GPU resources.
BUG=skia:5142
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1852733002
Review URL: https://codereview.chromium.org/1852733002
Diffstat (limited to 'tools/gpu/GrContextFactory.h')
-rw-r--r-- | tools/gpu/GrContextFactory.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpu/GrContextFactory.h b/tools/gpu/GrContextFactory.h index 14a2739815..16f6fb23ff 100644 --- a/tools/gpu/GrContextFactory.h +++ b/tools/gpu/GrContextFactory.h @@ -107,6 +107,7 @@ public: void destroyContexts(); void abandonContexts(); + void releaseResourcesAndAbandonContexts(); struct ContextInfo { ContextInfo() |