From c421ca1d6e41214f09c0e6311c8519a15e44edd4 Mon Sep 17 00:00:00 2001 From: Khushal Date: Tue, 26 Jun 2018 14:38:34 -0700 Subject: 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 Commit-Queue: Khusal Sagar --- include/gpu/GrContext.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/gpu') 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 @@ -114,6 +114,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 -- cgit v1.2.3