aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Issue #8462: Add support for BufferSubData, CompressedTexImage2D andSimon Martin2015-12-011-0/+1
| | | | CompressedSubTexImage2D and re-enable individual webgl WPT tests.
* Handle zero-sized source surfaces properly, and upgrade `ipc-channel` toPatrick Walton2015-09-301-20/+20
| | | | | | | | incorporate the fix for zero-sized shmem on Mac. Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-7/+7
|
* Make use of FromStr and Default traits in lib canvasThiago Pontes2015-09-031-78/+104
| | | | fixup! Make use of FromStr and Default traits in lib canvas
* webgl: Add shader validation and translationecoal952015-08-301-3/+1
| | | | | | | | 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).
* webgl: Implement multiple calls and improve error detectionecoal952015-08-251-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements WebGL's: * cullFace * frontFace * enable * disable * depthMask * colorMask * clearDepth * clearStencil * depthFunc * depthRange * hint * lineWidth * pixelStorei * polygonOffset * texParameteri * texParameterf * texImage2D (partially) It inlines a lot of OpenGL calls to keep the file `components/canvas/webgl_paint_task.rs` as small as possible while keeping readability. It also improves error detection on previous calls, and sets node damage on the canvas in the drawing calls. It adds a `TexImage2D` reftest, even though it's not enabled because: * WebGL paints the image when it loads (asynchronously), so the reftest doesn't wait for it and it finishes early * If we change the source for the base64 src of the image it works as expected in non-headless mode, but the test harness locks
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-2/+2
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-10/+12
|
* Auto merge of #7092 - dzbarsky:putimagedata, r=jdmbors-servo2015-08-091-1/+1
|\ | | | | | | | | | | | | | | | | | | Clean up and fix PutImageData <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7092) <!-- Reviewable:end -->
| * Switch PutImageData to using CopySurfaceDavid Zbarsky2015-08-081-1/+1
| |
| * Pass a Rect instead of an Option<Rect> to PutImageDataDavid Zbarsky2015-08-081-1/+1
| |
* | Fix getImageData with sizes < 1 pixelDavid Zbarsky2015-08-081-1/+1
|/
* script: Make most of 2D canvas and WebGL run over IPC.Patrick Walton2015-07-251-35/+63
| | | | | | 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.
* canvas: Move to shared memory for images and canvas backing stores.Patrick Walton2015-07-241-1/+3
| | | | | | | | | | | | | The idea here is to land this before making images and canvas IPC-safe, because this will shake out bugs relating to the shared memory. There are currently test timeouts that are preventing multiprocess images and canvas from landing, and I believe those are due to the inefficiency of sending large amounts of data in the unoptimized builds we test with. By moving to shared memory, this should drastically reduce the number of copies and `serde` serialization. Under the hood, this uses Mach OOL messages on Mac and temporary memory-mapped files on Linux.
* Auto merge of #6487 - pcwalton:background-tiling, r=glennwbors-servo2015-07-071-1/+2
|\ | | | | | | | | | | | | | | | | | | gfx: Use a pattern instead of tiling images manually. r? @SimonSapin <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6487) <!-- Reviewable:end -->
| * gfx: Use a pattern instead of tiling images manually.Patrick Walton2015-07-071-1/+2
| |
* | address review commentsecoal952015-07-061-1/+0
| |
* | webgl: implement getErrorecoal952015-07-061-1/+2
| |
* | webgl: Make bind* calls more spec-compliantecoal952015-07-061-10/+15
| |
* | webgl: Refactor implementation to move logic inside the DOM interfacesecoal952015-07-061-3/+21
|/ | | | | | | | | | 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).
* Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.Ms2ger2015-06-251-0/+1
|
* Use euclid from crates.ioecoal952015-06-191-5/+5
|
* Auto merge of #6357 - ecoal95:more-webgl, r=pcwaltonbors-servo2015-06-131-0/+6
|\ | | | | | | | | | | | | | | | | | | See the commit descriptions for more details. Blocked on https://github.com/servo/gleam/pull/24 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6357) <!-- Reviewable:end -->
| * webgl: Add multiple WebGL calls (activeTexture + blend*)ecoal952015-06-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | * activeTexture * blendColor * blendFunc * blendFuncSeparate * blendEquation * blendEquationSeparate Blocked on gleam.
* | rust-geom API changesCorey Farwell2015-06-131-4/+4
|/ | | | https://github.com/servo/rust-geom/pull/81
* Implementation of pattern fill style for canvas.Hyowon Kim2015-06-131-0/+55
|
* Remove gfx_traits from the dependencies of [script].Mátyás Mustoha2015-06-121-1/+14
|
* Add attributes for canvas shadows.Hyowon Kim2015-06-121-1/+5
|
* Implement new WebGL interfaces and methodsecoal952015-06-061-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 https://github.com/servo/gleam/pull/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.
* WebGLRenderingContext getters and `getParameter`ecoal952015-06-011-0/+2
| | | | | | This implements the `canvas`, `drawingBufferHeight` and `drawingBufferWidth` getters to `WebGLRenderingContext`, and an initial version of `getParameter`.
* Add WebGLContextAttributes supportecoal952015-06-011-0/+3
| | | | | | | This commit also: * Allows to return non-rootable dictionaries from Codegen. * Merges the two context types in an enum type.
* Layerize canvasecoal952015-05-201-0/+433
Note that this keeps using readback right now, `NativeSurface` painting will be implemented soon. Also see https://github.com/servo/servo/issues/6142