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 upCache context attributes for the rendering context; #20532 #21816
Conversation
ghost
commented
Sep 26, 2018
No Taskcluster jobs started for this pull requestThe `allowPullRequests` configuration for this repository (in `.taskcluster.yml` on the
default branch) does not allow starting tasks for this pull request. |
highfive
commented
Sep 26, 2018
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @asajeffrey (or someone else) soon. |
highfive
commented
Sep 26, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Sep 26, 2018
| // Therefore, the values we had cached away when we instantiated | ||
| // the context stay the same, and can be safely returned back | ||
| // to the user. | ||
| return Some(WebGLContextAttributes { |
This comment has been minimized.
This comment has been minimized.
CYBAI
Sep 27, 2018
Collaborator
Maybe you won't need return here? Also, it would be great to indent one more tab inside the function!
fn GetContextAttributes(&self) -> Option<WebGLContextAttributes> {
// Currently ...
Some(WebGLContextAttributes {
...
})
}
This comment has been minimized.
This comment has been minimized.
sumit0190
Oct 1, 2018
Author
Contributor
Will do; just gonna wait for some other feedback and bundle up the changes if possible.
| premultipliedAlpha: self.attrs.premultipliedAlpha, | ||
| preserveDrawingBuffer: self.attrs.preserveDrawingBuffer, | ||
| stencil: self.attrs.stencil, | ||
| }) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sumit0190
Oct 1, 2018
Author
Contributor
Borrow checker doesn't like that. I also can't use clone here, I literally have to create a new object.
|
|
|
@sumit0190 Are you still working on this? |
|
@sumit0190 Ping? |
|
Sorry about that; I missed the earlier ping completely. I'll check if the PR is still valid - not sure if the comments I added are still true or not (haven't been keeping up with all the changes). |
|
@sumit0190 another ping? |
|
I'll close this for now, but feel free to reopen it! |
sumit0190 commentedSep 26, 2018
•
edited by jdm
Cache context attributes when creating
webglrenderingcontext./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is