diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-10-02 09:07:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 09:07:04 -0400 |
commit | 13a43e69e0fa16540ec02b6fc3569202470e9e5d (patch) | |
tree | 2156ca28bf21ec26a41bca94a0cc5ec0a8610ec3 /components/script/dom/webidls | |
parent | b6df281b80927621a8c7b2eca7c5f7b24511e525 (diff) | |
parent | 248545ddda503e06bc59b5274c63a6c25da4b355 (diff) | |
download | servo-13a43e69e0fa16540ec02b6fc3569202470e9e5d.tar.gz servo-13a43e69e0fa16540ec02b6fc3569202470e9e5d.zip |
Auto merge of #24250 - imiklos:webglsync, r=jdm
Initial implementation of WebGLSync
This patch adds initial support for [WebGLSync](https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.14).
Note:
There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
<!-- Either: -->
- [X] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24250)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/WebGL2RenderingContext.webidl | 7 | ||||
-rw-r--r-- | components/script/dom/webidls/WebGLSync.webidl | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/components/script/dom/webidls/WebGL2RenderingContext.webidl b/components/script/dom/webidls/WebGL2RenderingContext.webidl index 13e78c72ac1..d46f3099f60 100644 --- a/components/script/dom/webidls/WebGL2RenderingContext.webidl +++ b/components/script/dom/webidls/WebGL2RenderingContext.webidl @@ -15,9 +15,6 @@ typedef unsigned long long GLuint64; // interface WebGLSampler : WebGLObject { // }; -// interface WebGLSync : WebGLObject { -// }; - // interface WebGLTransformFeedback : WebGLObject { // }; @@ -542,12 +539,12 @@ interface mixin WebGL2RenderingContextBase any getSamplerParameter(WebGLSampler sampler, GLenum pname);*/ /* Sync objects */ - /*WebGLSync? fenceSync(GLenum condition, GLbitfield flags); + WebGLSync? fenceSync(GLenum condition, GLbitfield flags); [WebGLHandlesContextLoss] GLboolean isSync(WebGLSync? sync); void deleteSync(WebGLSync? sync); GLenum clientWaitSync(WebGLSync sync, GLbitfield flags, GLuint64 timeout); void waitSync(WebGLSync sync, GLbitfield flags, GLint64 timeout); - any getSyncParameter(WebGLSync sync, GLenum pname);*/ + any getSyncParameter(WebGLSync sync, GLenum pname); /* Transform Feedback */ /*WebGLTransformFeedback? createTransformFeedback(); diff --git a/components/script/dom/webidls/WebGLSync.webidl b/components/script/dom/webidls/WebGLSync.webidl new file mode 100644 index 00000000000..3b251b8cf87 --- /dev/null +++ b/components/script/dom/webidls/WebGLSync.webidl @@ -0,0 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +// +// WebGL IDL definitions scraped from the Khronos specification: +// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.14 +// + +[Pref="dom.webgl2.enabled"] +interface WebGLSync : WebGLObject { +}; |