Chromium Code Reviews| Index: include/gpu/gl/SkGLContextHelper.h |
| diff --git a/include/gpu/gl/SkGLContextHelper.h b/include/gpu/gl/SkGLContextHelper.h |
| index a06c6e1f9b0a317654b3e484a2929f545f927539..95157670add172a2ce07751dac4bdb7f993c8aca 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 make by Skia GPU code. |
|
bsalomon
2014/07/29 14:18:13
This second part is not currently implemented, but
|
| + */ |
| + void testAbandon(); |
| + |
| protected: |
| /** |
| * Subclass implements this to make a GL context. The returned GrGLInterface |