aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas
Commit message (Collapse)AuthorAgeFilesLines
...
| * Query layout to resolve canvas font property valueUtsav Oza2020-06-101-1/+1
| |
| * Basic implementation of canvas.fillTextUtsav Oza2020-06-102-4/+61
| |
| * Check for valid arguments before processing canvas.fillTextUtsav Oza2020-06-102-36/+37
| |
* | canvas: Don't panic if webrender isn't reachable.Josh Matthews2020-06-102-2/+5
|/
* Proxy all WR interactions for layout/font/script/canvas threads to the ↵Josh Matthews2020-06-093-44/+42
| | | | | | | compositor thread. There is now a single RenderApi that is used, and all transactions are serialized through the compositor.
* Update raqote and associated dependenciesatouchet2020-06-031-1/+1
|
* Remove some unused dependency declarationsSimon Sapin2020-05-291-1/+0
| | | | | | This is based on compiling with `RUSTFLAGS="-W unused_crate_dependencies"` (CC https://github.com/rust-lang/rust/pull/72342) in a recent Nightly (more so than used in the tree as of this writing, CC https://github.com/servo/servo/issues/26661 for work-arounds). Only one crate is actually removed from the dependency graph, others are still dependended from other places.
* update rust toolchainKunal Mohan2020-05-211-1/+1
|
* Dedupe dwroteatouchet2020-05-121-15/+14
|
* Convert all uses of UpdateResources api to use webrender transactions.Josh Matthews2020-05-114-6/+28
|
* Update webrender.Josh Matthews2020-05-111-1/+1
|
* Auto merge of #26336 - szeged:mmatyas__webgl_fns_getparam4, r=jdmbors-servo2020-05-011-1/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 MIN_PROGRAM_TEXEL_OFFSET Improves the support of the WebGL2 `MIN_PROGRAM_TEXEL_OFFSET` property (ie. stores it as a signed integer) and adds support for querying it using GetParameter. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy Depends on #26333 because they touch the same test files. --- <!-- 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 - [x] There are tests for these 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. -->
| * Add support for WebGL2 MIN_PROGRAM_TEXEL_OFFSETMátyás Mustoha2020-04-301-1/+10
| | | | | | | | | | | | | | | | Improves the support of the WebGL2 `MIN_PROGRAM_TEXEL_OFFSET` property (ie. stores it as a signed integer) and adds support for querying it using GetParameter. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
* | webgl: Return TEXTURE_IMMUTABLE_FORMAT as a boolean; don't panic on macOS ↵Josh Matthews2020-04-301-0/+5
| | | | | | | | for TEXTURE_IMMUTABLE_LEVELS.
* | webgl: Add missing RGB8 texture format combination.Josh Matthews2020-04-301-1/+2
| |
* | webgl: Fix tidyMátyás Mustoha2020-04-301-8/+4
| |
* | webgl: Fix support for float/half-float texture formats.Josh Matthews2020-04-301-11/+22
| |
* | Add support for WebGL2 TexStorage2DMátyás Mustoha2020-04-301-3/+20
|/ | | | | | | | Adds initial support for the WebGL2 `TexStorage2D` call, adds support for the related texture enums and enables some of the texture tests. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.6
* Add support for some more WebGL2 limit parametersMátyás Mustoha2020-04-292-19/+73
| | | | | | | | | | | | | | | | Adds support for the following new WebGL2 GetParameter values: - `MAX_ELEMENT_INDEX` - `MAX_ELEMENTS_INDICES` - `MAX_ELEMENTS_VERTICES` - `MAX_FRAGMENT_INPUT_COMPONENTS` - `MAX_SAMPLES` - `MAX_SERVER_WAIT_TIMEOUT` - `MAX_TEXTURE_LOD_BIAS` - `MAX_VARYING_COMPONENTS` - `MAX_VERTEX_OUTPUT_COMPONENTS` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
* Update surfman to 0.2 and remove glutinAlan Jeffrey2020-04-173-172/+319
|
* Auto merge of #26147 - jdm:linewidth, r=noxbors-servo2020-04-141-1/+7
|\ | | | | | | | | | | | | | | Avoid GL errors with LineWidth commands - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26139
| * webgl: Avoid GL errors with LineWidth commands.Josh Matthews2020-04-081-1/+7
| |
* | Remove assertion for negative value from get_uniform_locationDaniel Alley2020-04-091-1/+0
| | | | | | | | closes #26150
* | Auto merge of #26136 - asajeffrey:goodbye-webvr, r=Manishearthbors-servo2020-04-082-20/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove WebVR <!-- Please describe your changes on the following line: --> Removes support for WebVR. WebXR is our future! --- <!-- 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 - [x] These changes do not require tests because how do you test <!-- 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. -->
| * Remove WebVRAlan Jeffrey2020-04-082-20/+1
| |
* | Add initial support for VertexAttribI4*, VertexAttribIPointerIstvan2020-04-071-1/+6
| | | | | | | | Adds initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls.
* | Update euclidManish Goregaokar2020-04-071-17/+1
|/
* Add support for DrawRangeElements in WebGL2Istvan2020-03-301-0/+1
| | | | Adds initial support for the WebGL2 `DrawRangeElements` call.
* Revert "Add a simple implementation of CanvasRenderingContext2d.fillText"Paul Rouget2020-03-243-104/+4
| | | | Windows crash: https://github.com/servo/servo/issues/26015
* Add a simple implementation of CanvasRenderingContext2d.fillTextkaiakz2020-03-193-4/+104
|
* Add support for WebGL2 read and draw buffer settingsMátyás Mustoha2020-03-161-0/+2
| | | | | | | | | | | Adds support for the `ReadBuffer` and `DrawBuffers` WebGL2 calls and the related parameter getters. See: - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
* Add support for some more WebGL2 renderbuffer functionsMátyás Mustoha2020-03-131-0/+31
| | | | | | | | | Adds support for the following WebGL2 calls: - `RenderbufferStorageMultisample` - `GetInternalFormativ` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.5
* Auto merge of #25855 - jdm:surface-inversion, r=Manishearth,asajeffreybors-servo2020-03-094-56/+67
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove GL->d3d blit in HoloLens immersive mode Depends on: * https://github.com/servo/surfman/pull/151 * https://github.com/asajeffrey/surfman-chains/pull/7 * https://github.com/servo/webxr/pull/133 These changes add two extra APIs for embedders to use when registering a WebXR device - one to allow running any closure as a task in the webgl thread, and one to register an arbitrary surface provider for a particular webxr session. When an openxr session is started, it can then obtain the webgl thread's d3d device from that thread's surfman device and ensure that openxr uses it. Surface providers are traits that have their methods invoked by the webgl thread as part of the the normal swapchain operations. This allows the openxr surface provider to return surfaces that wrap the underlying openxr textures, which are valid in the webgl thread and can be used as the target of an opaque framebuffer. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25735 - [x] These changes do not require tests because there are no windows immersive mode tests
| * Integrate swapchain surface provider changes into webgl and webxr ↵Josh Matthews2020-03-094-56/+67
| | | | | | | | implementations.
* | Add support for WebGL2 GetFragDataLocationMátyás Mustoha2020-03-092-1/+7
|/ | | | | | Adds support for the `GetFragDataLocation` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.7
* Auto merge of #25863 - servo:synup, r=jdmbors-servo2020-03-053-5/+5
|\ | | | | | | Remove syn 0.15 from our crate graph
| * Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-053-5/+5
| | | | | | | | | | | | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* | Add support for WebGL2 FramebufferTextureLayerMátyás Mustoha2020-03-043-1/+22
| | | | | | | | | | | | Adds support for `FramebufferTextureLayer` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* | Auto merge of #25798 - szeged:mmatyas__webgl_fns_framebuf_invalidate, r=jdmbors-servo2020-03-032-1/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 framebuffer invalidation Adds support for the `invalidateFramebuffer` and `invalideSubFramebuffer` WebGL2 calls. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4 <!-- Please describe your changes on the following line: --> Depends on #25785. cc @jdm @zakorgy --- <!-- 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 - [x] There are tests for these 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. -->
| * | Add support for WebGL2 framebuffer invalidationMátyás Mustoha2020-03-032-1/+7
| |/ | | | | | | | | | | | | Adds support for the `invalidateFramebuffer` and `invalideSubFramebuffer` WebGL2 calls. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* / Make fill_rect() draw patterns correctlypylbrecht2020-03-032-32/+42
|/
* Auto merge of #25801 - pylbrecht:arc.refactor, r=jdmbors-servo2020-02-262-82/+58
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor CanvasRenderingContext2D.arc() and .ellipse() <!-- Please describe your changes on the following line: --> Refactor `arc()` and `ellipse()` to make use of `lyon_geom::Arc` for approximating an arc with quadratic bezier curves. --- <!-- 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 - [x] These changes fix part of #25331 <!-- Either: --> - [x] There are tests for these 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. -->
| * Refactor arc() and ellipse() to use lyon_geom::Arcpylbrecht2020-02-262-82/+58
| |
* | Remove azure canvas backendDaniel Alley2020-02-255-857/+5
| | | | | | | | closes #25833
* | Add support for WebGL2 clear buffer operationsMátyás Mustoha2020-02-242-1/+13
| | | | | | | | | | | | | | | | | | | | | | Adds support for the following WebGL2 methods: - `clearBufferfv` - `clearBufferiv` - `clearBufferuiv` - `clearBufferfi` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
* | Add profiling for WebXRManish Goregaokar2020-02-222-4/+30
| |
* | Update ipc-channel and crossbeam-channel.Josh Matthews2020-02-201-2/+2
|/
* Implement CanvasRenderingContext2D.getTransform()pylbrecht2020-02-122-0/+8
|
* Remove dependency of constellation on canvasKunal Mohan2020-02-062-15/+1
| | | | | | move `ConstellationCanvasMsg` to canvas_traits and start canvas paint thread to components/servo. This, however, does not remove dependency for conditional compilation options.
* Don't spam the log if the constellation can't be reached from the canvas thread.Josh Matthews2020-01-311-0/+1
|