aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update surfman to use Git versionManish Goregaokar2019-11-112-2/+6
| |
| * Remove patched webxrManish Goregaokar2019-11-082-20/+53
| |
* | Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensionsBailey Blankenship2019-11-102-8/+40
| | | | | | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code
* | Add Support for WebGL TransormfeedbackIstvan Miklos2019-11-082-2/+58
|/ | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.15
* Implement the basic WebGL2 buffer data operationsMátyás Mustoha2019-11-051-0/+21
| | | | | | | Adds support for `bufferData`, `bufferSubData`, `copyBufferSubData` and `getBufferSubData`. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.3
* Use surfman for managing GL surfacesPatrick Walton2019-11-017-1191/+1127
| | | | | | Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com> Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-1/+1
|
* Implement DrawTarget::snapshot()pylbrecht2019-10-111-1/+1
|
* Implement Path::transformed_copy_to_builder()pylbrecht2019-10-111-7/+10
|
* Show warn! for shadow drawing operationspylbrecht2019-10-111-1/+1
|
* webgl: Lazily clear the canvas right before the first webgl command of the ↵Josh Matthews2019-10-102-80/+88
| | | | next frame.
* webgl: Clear the drawing buffer when preserveDrawingBuffer is false.Josh Matthews2019-10-091-0/+38
|
* Add WebGLSampler supportMátyás Mustoha2019-10-081-0/+24
| | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
* Initial implementation of WebGLSyncIstvan Miklos2019-10-022-0/+28
| | | | | | | This patch adds initial support for WebGLSync. Note: There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`.
* Auto merge of #24335 - sinkuu:unuesd_deps, r=SimonSapinbors-servo2019-10-011-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused dependencies <!-- Please describe your changes on the following line: --> Removes unused crates from `Cargo.toml` to (possibly) shorten build time. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because no semantic changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24335) <!-- Reviewable:end -->
| * Remove unused dependenciesShotaro Yamada2019-10-011-1/+0
| |
* | Initial implementation of WebGLQueriesMátyás Mustoha2019-10-011-0/+17
|/ | | | | | | | This patch adds initial support for WeGLQueries. Most related WebGL functions and objects are implemented [1]. What's still missing is the `EXT_disjoint_timer_query_webgl2` support. [1]: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.12
* Auto merge of #24242 - jdm:xr-webgllayer-format, r=asajeffrey,noxbors-servo2019-09-232-10/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix immersive mode panic on three.js rollercoaster on hololens We have some special logic about texture formats when creating drawing buffers for WebGL that needs to be shared with the code that creates a separate framebuffer for immersive mode. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24083 and fix #20595. - [x] These changes do not require tests because no CI for hololens; tested manually in the emulator. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24242) <!-- Reviewable:end -->
| * webxr: Use the same texture format as the original GL context's framebuffer ↵Josh Matthews2019-09-202-10/+20
| | | | | | | | when creating an XR GL layer.
* | Implement LinearGradient and RadialGradientpylbrecht2019-09-171-64/+42
| |
* | Implement ColorBurnpylbrecht2019-09-171-1/+1
| |
* | Update raqotepylbrecht2019-09-171-2/+1
| |
* | Add naive implementation for ellipse()pylbrecht2019-09-171-7/+136
|/ | | | | rust-azure's ellipse() C++ implementation copy/pasted and kind of ported to Rust. Obviously needs refactor to turn it into idiomatic Rust.
* webgl: Support vertex array objects on macOS.Josh Matthews2019-09-132-11/+72
|
* Replace use of gleam in webgl with sparkle.Josh Matthews2019-09-113-30/+26
|
* Fallback to old extensions API if NUM_EXTENSIONS errorsAlan Jeffrey2019-09-031-0/+5
|
* Auto merge of #24048 - pylbrecht:raqote, r=jrmuizelbors-servo2019-09-022-7/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement raqote backend for canvas 2D rendering <!-- Please describe your changes on the following line: --> This is a follow-up of #23936. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #23431 <!-- Either: --> <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24048) <!-- Reviewable:end -->
| * Don't use catch all in matchpylbrecht2019-09-011-1/+1
| |
| * Use raqote's implementation of Path::contains_point()pylbrecht2019-09-011-8/+2
| |
| * Implement create_gradient_stops()pylbrecht2019-08-292-4/+16
| |
| * Refactor Path::contains_point() using any()pylbrecht2019-08-251-21/+8
| |
| * Implement PathBuilder::get_current_point()pylbrecht2019-08-251-1/+13
| |
| * Implement Path::contains_point()pylbrecht2019-08-251-2/+23
| |
* | Auto merge of #24058 - Eijebong:ipc-channel, r=jdmbors-servo2019-08-271-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Update ipc-channel and related dependencies <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24058) <!-- Reviewable:end -->
| * | Update ipc-channel and related dependenciesBastien Orivel2019-08-271-1/+1
| |/
* / Fix extension querying when using WebGL2Mátyás Mustoha2019-08-261-1/+12
|/ | | | | | | | This patch fixes a crash caused by using a deprecated GL call. Starting with OpenGL 3 (used by WebGL2), the `glGetString(GL_EXTENSIONS)` call is deprecated, and some drivers produce GL_INVALID_ENUM error. Querying can be done by checking the number of extensions first, then getting the extensions one by one.
* Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)Simon Sapin2019-08-231-1/+1
|
* Fix the build and tidy and address nitsBastien Orivel2019-08-212-28/+21
|
* Implement Source::Surface for FillOrStrokeStyle with raqoteBastien Orivel2019-08-211-1/+14
|
* Implement get_formatBastien Orivel2019-08-211-1/+1
| | | | | Since raqote doesn't have multiple formats for its surfaces, this is a noop to avoid crashing with the unimplemented
* Implement a few functions to make tests in draw-image and draw-path passBastien Orivel2019-08-212-16/+53
|
* WIP: Fix azure backendBastien Orivel2019-08-212-53/+76
|
* Make tidy happy againBastien Orivel2019-08-211-12/+10
|
* Implement create_similar_draw_targetBastien Orivel2019-08-211-2/+2
|
* Imlplement get_composition_opBastien Orivel2019-08-212-3/+3
|
* Implement set_shadow_color, set_global_composition and stroke_rectBastien Orivel2019-08-211-10/+95
|
* Match the azure backend regarding cap stuffBastien Orivel2019-08-211-1/+7
| | | | | I think this is wrong because it won't respect cap style at all when stroking lines but we'll cross that bridge when we get to it
* Set the line cap to butt when drawing a rect with a 0 width/heightBastien Orivel2019-08-211-1/+3
| | | | | Otherwise raqote will draw the cap even though it shouldn't because the spec says so
* Pass BlendMode::Clear to the fill method of DrawTarget in clear_rectBastien Orivel2019-08-211-1/+3
| | | | | | This makes some tests regarding clearing rects pass. Otherwise the rect wouldn't get cleared properly and it'd keep its original color but get an alpha of 0
* Implement snapshot_data_ownedBastien Orivel2019-08-211-1/+8
|