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 upWebGL encapsulation #1530
WebGL encapsulation #1530
Conversation
|
Reviewed 1 of 1 files at r1. Comments from Reviewable |
|
not sure if this is going to work |
|
|
WebGL encapsulation Refactors our WebGL usage and fixes a regression from #1509 also related to #1353 (should make it easier) r? @MortimerGoro cc @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1530) <!-- Reviewable:end -->
| @@ -105,6 +105,59 @@ impl Document { | |||
| } | |||
| } | |||
|
|
|||
| struct WebGL { | |||
| last_id: WebGLContextId, | |||
| contexts: HashMap<WebGLContextId, GLContextWrapper, BuildHasherDefault<FnvHasher>>, | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kvark
Jul 28, 2017
Author
Member
I just followed the existing code. Would be great to convert it in bulk to a shorter form as you propose, just in a separate PR
This comment has been minimized.
This comment has been minimized.
MortimerGoro
Jul 28, 2017
•
Contributor
The WebGL code in WR will be deleted after servo/servo#17891 lands, so it's not worth the effort to work on that if it only affects webgl (yes if it changes other parts of the code)
This comment has been minimized.
This comment has been minimized.
|
|
kvark commentedJul 28, 2017
•
edited
Refactors our WebGL usage and fixes a regression from #1509
also related to #1353 (should make it easier)
r? @MortimerGoro
cc @glennw
This change is