commit | 6e2aad4e9f6280aa2b710e7324458fdc6d699ec5 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Fri Apr 01 11:54:31 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Apr 01 11:54:31 2016 -0700 |
tree | 77bf09c049b5afe4aaccd66b7926050c53bbebff | |
parent | 895f3f0544ce38d35999771754cbb1d876c14b5a [diff] [blame] |
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
diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h index c713244..490737f 100644 --- a/dm/DMGpuSupport.h +++ b/dm/DMGpuSupport.h
@@ -84,6 +84,8 @@ void destroyContexts() {} void abandonContexts() {} + + void releaseResourcesAndAbandonContexts() {} }; } // namespace sk_gpu_test