Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement WebGLRenderingContext::isEnabled #13337
Conversation
highfive
commented
Sep 20, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @emilio (or someone else) soon. |
highfive
commented
Sep 20, 2016
|
@bors-servo: try |
Implement WebGLRenderingContext::isEnabled Implemented WebGLRenderingContext::isEnabled - Please note the return value of the implementation, not sure about returning `false` on `InvalidEnum`. - the `webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html` wpt test is disabled on linux but was enabled on my machine and run to validate expectations. - the `/webgl/conformance-1.0.3/conformance/context/methods.html` test is disabled everywhere. Enabling and running on my machine showed incorrect expectations beyond `isEnabled`. The test was temporarily edited to test just for `isEnabled` and it ran successfully. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13040 - [X] There are tests for these changes (please read details above) - [ ] These changes do not require tests because _____ <!-- 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/13337) <!-- Reviewable:end -->
|
|
highfive
commented
Sep 20, 2016
|
|
@bors-servo: retry |
Implement WebGLRenderingContext::isEnabled Implemented WebGLRenderingContext::isEnabled - Please note the return value of the implementation, not sure about returning `false` on `InvalidEnum`. - the `webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html` wpt test is disabled on linux but was enabled on my machine and run to validate expectations. - the `/webgl/conformance-1.0.3/conformance/context/methods.html` test is disabled everywhere. Enabling and running on my machine showed incorrect expectations beyond `isEnabled`. The test was temporarily edited to test just for `isEnabled` and it ran successfully. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13040 - [X] There are tests for these changes (please read details above) - [ ] These changes do not require tests because _____ <!-- 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/13337) <!-- Reviewable:end -->
|
|
Implement WebGLRenderingContext::isEnabled Implemented WebGLRenderingContext::isEnabled - Please note the return value of the implementation, not sure about returning `false` on `InvalidEnum`. - the `webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html` wpt test is disabled on linux but was enabled on my machine and run to validate expectations. - the `/webgl/conformance-1.0.3/conformance/context/methods.html` test is disabled everywhere. Enabling and running on my machine showed incorrect expectations beyond `isEnabled`. The test was temporarily edited to test just for `isEnabled` and it ran successfully. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13040 - [X] There are tests for these changes (please read details above) - [ ] These changes do not require tests because _____ <!-- 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/13337) <!-- Reviewable:end -->
|
|
|
Filed #13342 for that crash. |
| constants::BLEND | constants::CULL_FACE | constants::DEPTH_TEST | constants::DITHER | | ||
| constants::POLYGON_OFFSET_FILL | constants::SAMPLE_ALPHA_TO_COVERAGE | constants::SAMPLE_COVERAGE | | ||
| constants::SAMPLE_COVERAGE_INVERT | constants::SCISSOR_TEST => { | ||
| let (sender, receiver) = ipc::channel().unwrap(); |
This comment has been minimized.
This comment has been minimized.
emilio
Sep 21, 2016
Member
Can you write a comment here in the lines of:
// TODO: We could write this without the need of IPC if needed, recording the calls to `enable` and `disable`.
This is more than fine for now though, thanks for doing this!
r=me with that.
This comment has been minimized.
This comment has been minimized.
emilio
Sep 21, 2016
Member
Oh, also, bonus points would be factoring out the constants with enable and disable, but that can also be a later refactoring :)
This comment has been minimized.
This comment has been minimized.
ofekd
Sep 21, 2016
•
Author
Contributor
Hi @emilio, Can you elaborate a bit more about factoring out the constants? I'll try and do that.
Thanks
|
It would be something like making a method called You would call this function from the three sites instead of doing the Thank you! :) On Sep 21, 2016 1:58 PM, "ofekd" notifications@github.com wrote:
|
|
@bors-servo r=emilio |
|
@ofekd Sorry, bors-servo only listens to reviewers. @bors-servo r=emilio |
|
|
Implement WebGLRenderingContext::isEnabled Implemented WebGLRenderingContext::isEnabled - Please note the return value of the implementation, not sure about returning `false` on `InvalidEnum`. - the `webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.html` wpt test is disabled on linux but was enabled on my machine and run to validate expectations. - the `/webgl/conformance-1.0.3/conformance/context/methods.html` test is disabled everywhere. Enabling and running on my machine showed incorrect expectations beyond `isEnabled`. The test was temporarily edited to test just for `isEnabled` and it ran successfully. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13040 - [X] There are tests for these changes (please read details above) - [ ] These changes do not require tests because _____ <!-- 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/13337) <!-- Reviewable:end -->
|
|
ofekd commentedSep 20, 2016
•
edited by larsbergstrom
Implemented WebGLRenderingContext::isEnabled
falseonInvalidEnum.webgl/conformance-1.0.3/conformance/state/gl-enable-enum-test.htmlwpt test is disabled on linux but was enabled on my machine and run to validate expectations./webgl/conformance-1.0.3/conformance/context/methods.htmltest is disabled everywhere. Enabling and running on my machine showed incorrect expectations beyondisEnabled. The test was temporarily edited to test just forisEnabledand it ran successfully../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is