diff options
author | Khushal <khushalsagar@chromium.org> | 2018-06-26 14:38:34 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-27 01:08:45 +0000 |
commit | c421ca1d6e41214f09c0e6311c8519a15e44edd4 (patch) | |
tree | ae029083d130acb979f9e1c15c862f6436908d7b /include/gpu | |
parent | ef12509ff2668027664308653ced36039af800ad (diff) |
gpu: Expose GrContextPriv::abandoned in the public API.
TBR=bsalomon@google.com
Bug: 854416
Change-Id: Iab71ca6e4724a925b0b9791267aac5ddc34f5b15
Reviewed-on: https://skia-review.googlesource.com/137692
Reviewed-by: Khusal Sagar <khushalsagar@chromium.org>
Commit-Queue: Khusal Sagar <khushalsagar@chromium.org>
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 73bf76a5e3..c1804e00ff 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -115,6 +115,11 @@ public: virtual void abandonContext(); /** + * Returns true if the context was abandoned. + */ + bool abandoned() const; + + /** * This is similar to abandonContext() however the underlying 3D context is not yet lost and * the GrContext will cleanup all allocated resources before returning. After returning it will * assume that the underlying context may no longer be valid. |