Index: include/gpu/gl/SkGLContextHelper.h |
diff --git a/include/gpu/gl/SkGLContextHelper.h b/include/gpu/gl/SkGLContextHelper.h |
index a06c6e1f9b0a317654b3e484a2929f545f927539..8eab62e52c8c1088be7d399d3daf40d78175378c 100644 |
--- a/include/gpu/gl/SkGLContextHelper.h |
+++ b/include/gpu/gl/SkGLContextHelper.h |
@@ -50,6 +50,14 @@ public: |
return fGL->hasExtension(extensionName); |
} |
+ /** |
+ * This notifies the context that we are deliberately testing abandoning |
+ * the context. It is useful for debugging contexts that would otherwise |
+ * test that GPU resources are properly deleted. It also allows a debugging |
+ * context to test that further GL calls are not made by Skia GPU code. |
+ */ |
+ void testAbandon(); |
+ |
protected: |
/** |
* Subclass implements this to make a GL context. The returned GrGLInterface |