Auto merge of #27168 - jdm:gl-fake-context-lost, r=Manishearth

Add stub isContextLost API.

We don't support losing contexts yet, so it's not lying to say that the context is never lost.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27116
- [x] There are tests for these changes
This commit is contained in:
bors-servo 2020-07-06 14:56:50 -04:00 committed by GitHub
commit 22a7522a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 24 deletions

View file

@ -470,8 +470,7 @@ interface mixin WebGLRenderingContextBase
readonly attribute GLsizei drawingBufferHeight;
[WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
// FIXME: https://github.com/servo/servo/issues/15266
// [WebGLHandlesContextLoss] boolean isContextLost();
[WebGLHandlesContextLoss] boolean isContextLost();
sequence<DOMString>? getSupportedExtensions();
object? getExtension(DOMString name);