aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Auto merge of #11147 - danlrobertson:webgl-tex, r=emiliobors-servo2016-05-231-95/+227
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Impl copyTexImage2D and copyTexSubImage2D - [X] `./mach build` does not report any errors - [X] `./mach test-tidy` does not report any errors - [x] There are tests for these changes Implement copyTexImage2D and copyTexSubImage2D for WebGLRenderingContext. Feedback would be appreciated. I did my best to follow the [spec](https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.8). Please let me know if I missed anything. I couldn't find tests for this. Let me know if I should create one. I'm more than happy to do so. As always any feedback, comments,or critiques are very welcome :smile: Part of #10209 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11147) <!-- Reviewable:end -->
| * Impl copyTexImage2D and copyTexSubImage2DDaniel Robertson2016-05-231-95/+227
| | | | | | | | | | Implement copyTexImage2D and copyTexSubImage2D for WebGLRenderingContext.
* | Implement SampleCoverageDavid Zbarsky2016-05-221-0/+5
|/
* Remove ConstellationChan.Ms2ger2016-05-191-2/+1
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Auto merge of #10776 - dzbarsky:getVertexAttrib, r=emiliobors-servo2016-05-181-0/+39
|\ | | | | | | | | | | | | | | Implement GetVertexAttrib <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10776) <!-- Reviewable:end -->
| * Implement GetVertexAttribDavid Zbarsky2016-05-121-0/+39
| |
* | Implement ReadPixelsDavid Zbarsky2016-05-121-8/+34
|/
* Implement IsShader fn and IsTexture fn for WebGLRenderingContextDaniel2016-05-091-0/+10
|
* compositing: Send mouse events to the right pipeline when usingPatrick Walton2016-05-041-0/+8
| | | | | | | | WebRender. Fixes mouse events in browser.html. Requires servo/webrender_traits#47 and servo/webrender#272.
* Implement stencil fns for WebGLRenderingContextKeith Yeung2016-04-241-3/+87
|
* Auto merge of #10443 - emilio:webgl-teximage2d-overload, r=jdmbors-servo2016-04-221-99/+397
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Implement the pending texImage2D overload, and add more validation This is a large-ish refactor of the Texture2D code, but it should be easier to read and of course more correct. I tried to annotate every error condition with a spec paragraph. I made just a reftest to ensure this works as intended, since I expect #10373 to land pretty soon. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10443) <!-- Reviewable:end -->
| * webgl: Fix a few typos in commentsEmilio Cobos Álvarez2016-04-201-2/+2
| |
| * webgl: texture: Make initialize only mark as initialized the current faceEmilio Cobos Álvarez2016-04-201-1/+2
| | | | | | | | | | Also refactor a bit the code, and remove the unused `is_initialized` flag.
| * webgl: Fix filling a non-zero levelEmilio Cobos Álvarez2016-04-201-8/+7
| | | | | | | | | | You can fill a level > 0 as long as the width and height values are power of two, so the previous test was bogus.
| * webgl: Reset bound buffer when appropiate in BufferDataEmilio Cobos Álvarez2016-04-201-2/+7
| | | | | | | | This makes the test bufferDataBadArgs pass appropiately.
| * webgl: Rename UniformType to UniformSetterType and hoist to the bottomEmilio Cobos Álvarez2016-04-191-76/+98
| |
| * webgl: Remove active_uniform related validation.Emilio Cobos Álvarez2016-04-191-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | It's broken for uniform arrays, since uniform.id() stops being the index then. We need to add a more complex integration with angle for this to ever be correct. Unfortunately the ANGLE part that we should touch is C++, and it has destructors, so we need to hook destructors there, and I can't do it right now.
| * webgl: Validate that the texture should be power of two if the level isEmilio Cobos Álvarez2016-04-191-4/+14
| | | | | | | | greater than 1
| * webgl: Implement the pending texImage2D overload, and add more validationEmilio Cobos Álvarez2016-04-191-29/+284
| | | | | | | | | | | | | | This is a large-ish refactor of the Texture2D code, but it should be easier to read and of course more correct. I tried to annotate every error condition with a spec paragraph.
* | Prevent use of reserved names in BindAttribLocationDavid Zbarsky2016-04-171-6/+4
|/
* Added remaining uniformsAdrian Utrilla2016-04-141-119/+214
|
* Implement GetActiveAttribDavid Zbarsky2016-04-111-0/+11
|
* Auto merge of #10224 - emilio:shader-type-validations, r=jdmbors-servo2016-04-121-11/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Add attribute validations and other nits Fixes https://github.com/servo/servo/issues/9958 Depends on a bunch of prs, and needs a test. r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10224) <!-- Reviewable:end -->
| * webgl: Make the api return the context limits and use them for validationsEmilio Cobos Álvarez2016-04-031-4/+17
| | | | | | | | | | | | | | | | | | | | | | This allows keeping the VertexAttrib* calls asynchronous. Another option would be to do the validation in the apply() function, but that'd require us passing an unnecessary channel around and add extra synchronization. The counterpart of this is that it has to be updated when the context changes, but that's less problem.
| * webgl: Remove unneeded return value.Emilio Cobos Álvarez2016-04-031-1/+4
| |
| * webgl: Use early return in DrawArraysEmilio Cobos Álvarez2016-04-031-6/+6
| |
| * webgl: Validate shader type parameter to CreateShader.Emilio Cobos Álvarez2016-04-031-0/+7
| |
* | Auto merge of #10433 - saurvs:pr3, r=emiliobors-servo2016-04-071-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement WebGLRenderingContext.getActiveUniform() Fixes https://github.com/servo/servo/issues/10397 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10433) <!-- Reviewable:end -->
| * | Implement WebGLRenderingContext.getActiveUniform()Saurav Sachidanand2016-04-061-0/+12
| | |
* | | Added Uniform2fvAdrian Utrilla2016-04-061-0/+21
| | |
* | | Added Uniform1ivAdrian Utrilla2016-04-061-0/+21
| | |
* | | Add Uniform2fAr13mis2016-04-041-0/+19
|/ /
* | Auto merge of #10369 - autrilla:Uniform4iv, r=emiliobors-servo2016-04-031-0/+41
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Issue #10368: Implemented Uniform4iv and Uniform4i Uniform4iv can make use of Uniform4i, so I implemented both. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10369) <!-- Reviewable:end -->
| * Added Uniform4iv and Uniform4iAdrian Utrilla2016-04-021-0/+41
| |
* | webgl: finish, flush, detachShader, generateMipmap, Uniform1iConnor Brewster2016-04-021-1/+71
|/
* #10211: Stop re-exporting webrender_traits WebGL types from canvas_traitsJan-Fabian Humann2016-03-301-45/+45
|
* Change old references of ecoal95Emilio Cobos Álvarez2016-03-231-6/+5
|
* Stop sending the renderer id to script.Ms2ger2016-03-211-1/+1
|
* Remove renderer_id fields.Ms2ger2016-03-211-3/+1
|
* Remove get_renderer_id functions.Ms2ger2016-03-211-6/+0
|
* Add WebRender integration to Servo.Glenn Watson2016-02-181-0/+2
| | | | | | | | WebRender is an experimental GPU accelerated rendering backend for Servo. The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used). WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
* Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-4/+4
|
* adding image metadata notification capabilities to image cachejmr02016-01-291-1/+2
|
* Remove unused imports in scriptKishor Bhat2016-01-171-1/+0
|
* webgl: Check shader compilation status on use_program.Emilio Cobos Álvarez2016-01-131-2/+4
|
* webgl: Check for bound element array buffer on DrawElementsEmilio Cobos Álvarez2016-01-131-6/+1
| | | | And remove outdated TODOs
* webgl: Check for pending current_program errorsEmilio Cobos Álvarez2016-01-131-4/+8
|
* webgl: Track uniformlocation's programEmilio Cobos Álvarez2016-01-131-8/+21
|
* webgl: Implement Uniform1f, Uniform1fv, and Uniform4fEmilio Cobos Álvarez2016-01-131-10/+41
| | | | | | I was going to implement Uniform4fv with sequences, (since it practically implemented), but we can't until we support Float32Array args because codegen doesn't know how tu differenciate between both.