Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add renderbuffer checks; #21485 #21813

Closed
wants to merge 1 commit into from
Closed

Conversation

@sumit0190
Copy link
Contributor

sumit0190 commented Sep 25, 2018

Added a check for width and height during render buffer creation. I will add a test after the initial review (there are existing tests too, I think).


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #21485 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@ghost
Copy link

ghost commented Sep 25, 2018

No Taskcluster jobs started for this pull request
The `allowPullRequests` configuration for this repository (in `.taskcluster.yml` on the
default branch) does not allow starting tasks for this pull request.
@highfive
Copy link

highfive commented Sep 25, 2018

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @paulrouget (or someone else) soon.

@highfive
Copy link

highfive commented Sep 25, 2018

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webglrenderbuffer.rs
  • @KiChjang: components/script/dom/webglrenderbuffer.rs
@highfive
Copy link

highfive commented Sep 25, 2018

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
.limits()
.max_renderbuffer_size as i32;

if width > max_size || height > max_size {

This comment has been minimized.

Copy link
@jdm

jdm Sep 25, 2018

Member

Why don't we move this check into WebGLRenderingContext::RenderbufferStorage instead? I think it makes more conceptual sense there.

This comment has been minimized.

Copy link
@sumit0190

sumit0190 Sep 25, 2018

Author Contributor

Hmm...I thought the WebGLMessage::RenderbufferStorage directly calls the corresponding gl API.
Also, WebGLRenderingContext::RenderbufferStorage already checks for these exact same conditions.

This comment has been minimized.

Copy link
@jdm

jdm Oct 10, 2018

Member

If the only caller of this method already checks these conditions, then I think this change is redundant.

@jdm
Copy link
Member

jdm commented Sep 25, 2018

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented Sep 25, 2018

Trying commit 1300812 with merge 60e46e3...

bors-servo added a commit that referenced this pull request Sep 25, 2018
Add renderbuffer checks; #21485

Added a check for width and height during render buffer creation. I will add a test after the initial review (there are existing tests too, I think).

---
<!-- 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
- [X] These changes fix #21485 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/21813)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 26, 2018

💥 Test timed out

@jdm
Copy link
Member

jdm commented Sep 26, 2018

The tests passed with no unexpected results.

@jdm
Copy link
Member

jdm commented Oct 10, 2018

Sorry, I didn't notice that we already check this condition in WebGLRenderingContext::RenderbufferStorage. I don't see a good reason to move the check or duplicate it.

@jdm jdm closed this Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.