aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglshader.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* webgl: finish, flush, detachShader, generateMipmap, Uniform1iConnor Brewster2016-04-021-1/+1
|
* #10211: Stop re-exporting webrender_traits WebGL types from canvas_traitsJan-Fabian Humann2016-03-301-5/+6
|
* webgl: Check shader compilation status on use_program.Emilio Cobos Álvarez2016-01-131-0/+4
|
* task -> threadrohan.prinja2016-01-101-2/+2
|
* Implement various WebGL functionsDavid Zbarsky2015-12-131-10/+4
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-3/+4
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* merge from masterrohan.prinja2015-11-031-6/+13
|\
| * Remove JSTraceable implementation from RefCell.Eli Friedman2015-11-021-5/+6
| | | | | | | | | | The implementation wasn't really right, and we would rather just use DOMRefCell anyway.
| * webgl: Add destructors for texture, program, shader, buffer and framebufferEmilio Cobos Álvarez2015-11-011-1/+7
| | | | | | | | | | | | | | | | | | | | This allows to cleanup resources earlier if they stop being used. Right now all resources were cleaned up when the context was destroyed, this is a slightly better approach. We ignore the possible failure of the send() call, since we don't keep track of these resources from the `WebGLRenderingContext` structure, so a texture could be destroyed after the context and give us problems.
* | more refactoringrohan.prinja2015-10-301-1/+1
|/
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-4/+3
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-5/+3
| | | | This merges import blocks that were reported by tidy as unmerged.
* webgl: Add shader validation and translationecoal952015-08-301-8/+49
| | | | | | | | This commit adds angle-based validation and translation to WebGL shaders. The changes to the tex_image_2d test is neccessary (it was not valid GLES 2.0 shader language).
* Remove helper traitsAnthony Ramine2015-08-271-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-2/+0
| | | | closes #7357
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+2
|
* script: Make most of 2D canvas and WebGL run over IPC.Patrick Walton2015-07-251-8/+8
| | | | | | To actually make the multiprocess communication work, we'll need to reroute the task creation to the pipeline or the compositor. But this works as a first step.
* address review commentsecoal952015-07-061-8/+6
|
* webgl: Make bind* calls more spec-compliantecoal952015-07-061-1/+1
|
* webgl: Refactor implementation to move logic inside the DOM interfacesecoal952015-07-061-6/+94
| | | | | | | | | | This improves the encapsulation and consistency in our WebGL implementation. Also allows to implement new methods such as `getShaderSource()`. It will also allow us to use `delete()` in the destructors of them (note that we will want to keep track of them from the context).
* Upgrade to SM 39Michael Wu2015-06-191-5/+5
|
* Fix WebGL objects inheritanceecoal952015-05-041-3/+4
|
* It implements enough WebGL spec to draw a triangleDiego Marcos2015-05-021-0/+39