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 new WebGL interfaces and methods #6293
Conversation
highfive
commented
Jun 5, 2015
hoppipolla-critic-bot
commented
Jun 5, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/5197 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
Are there any interfaces extending WebGLObject that won't have a get_id() helper? If not, could it be moved there? -S-awaiting-review +S-awaiting-answer +S-needs-code-changes Review status: all files reviewed, 3 unresolved discussions, all commit checks successful.
components/canvas/webgl_paint_task.rs, line 258 [r1] (raw file): Any harm in not including it, if it's not spec-compliant? components/script/dom/webglrenderingcontext.rs, line 139 [r1] (raw file): components/script/dom/webglrenderingcontext.rs, line 402 [r1] (raw file): Comments from the review on Reviewable.io |
|
Actually not, there's no interface extending |
|
Review status: all files reviewed, 3 unresolved discussions, all commit checks successful. components/canvas/webgl_paint_task.rs, line 258 [r1] (raw file): I'd prefer to keep them, and add the sanity check after it, instead of removing the shader calls and rewrite them again later.
components/script/dom/webglrenderingcontext.rs, line 139 [r1] (raw file): components/script/dom/webglrenderingcontext.rs, line 402 [r1] (raw file): Comments from the review on Reviewable.io |
|
I didn't mean exposing it as a DOM method, but as a helper on WebGLObject directly, to avoid duplicating the field and the Rust method everywhere. Review status: all files reviewed, 1 unresolved discussion, all commit checks successful. components/script/dom/webglrenderingcontext.rs, line 402 [r1] (raw file): Comments from the review on Reviewable.io |
|
Yes, I supposed so, but what I was trying to say (sorry), is that gecko for example doesn't even have the interface (they have a base class for them, but not a DOM binding). Anyways: The WebGL2 spec does spec some objects without Review status: all files reviewed, 1 unresolved discussion, all commit checks successful. Comments from the review on Reviewable.io |
|
I updated the tests and corrected the typo :) |
|
Review status: 12 of 14 files reviewed, 1 unresolved discussion, all commit checks successful. components/script/dom/webglrenderingcontext.rs, line 402 [r1] (raw file): Comments from the review on Reviewable.io |
|
Perfect, no other tests because we need to integrate Khronos test suite, right? -S-awaiting-answer -S-awaiting-review Update the bikeshed snippet and it can be merged. Review status: all files reviewed, 1 unresolved discussion, all commit checks successful.
Comments from the review on Reviewable.io |
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture
And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}
Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.
Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this
Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.
Blocked on servo/gleam#22
A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.
|
Reverted the changes then :P You're right, I can't do reftests with this until I implement the |
|
By the way it's still blocked on servo/gleam#22, I don't know if you can review it. |
|
Review status: all files reviewed, 1 unresolved discussion, all commit checks successful.
Comments from the review on Reviewable.io |
|
@bors-servo: r+ -S-blocked-on-external #6305 got merged. Review status: all files reviewed, 1 unresolved discussion, all commit checks successful. Comments from the review on Reviewable.io |
|
|
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture
And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}
Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.
Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this
Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.
Blocked on servo/gleam#22
A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293)
<!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture
And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}
Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.
Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this
Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.
Blocked on servo/gleam#22
A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293)
<!-- Reviewable:end -->
|
@nox Thanks for taking the time to update gleam and merge this, I'm in my final exams period so I couldn't take the time :) |
|
@ecoal95 Thanks for your contribution, I hope you'll have good marks. :) |
emilio commentedJun 5, 2015
This commit implements:
And adds the following methods to
WebGLRenderingContext:Fixes:
Known Issues:
Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.
Blocked on servo/gleam#22
A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.