aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump `time` to latest `v0.1.x` version.teymour-aldridge2021-06-251-1/+1
|
* Update to winit 0.24.Josh Matthews2021-03-051-2/+2
| | | | | Co-authored-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Paulo E. Castro <pecastro@wormholenet.com>
* Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-261-1/+1
|
* Fix deprecation warnings.Josh Matthews2020-11-121-11/+11
|
* Auto merge of #27558 - jdm:revert-revert-wrup, r=Manishearthbors-servo2020-08-101-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | Fix missing canvas text on UWP This addresses the missing fonts under UWP by updating font-kit and assorted dependencies that all depend on older incompatible versions of freetype. This also works around #27492 by using a fork of webrender that cherry-picks required dependency updates without bringing in the commit that exposes an ANGLE crash. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27515 - [x] These changes do not require tests because no UWP tests.
| * Update webrender.Josh Matthews2020-08-101-1/+1
| |
| * Revert "Revert "Update font-kit and freetype and unicode-script.""Josh Matthews2020-08-101-1/+1
| | | | | | | | This reverts commit 10ae3bfbbb2383d349de6150434cc47c6ad1c8e9.
| * Revert "Revert "Update raqote, font-kit, fontconfig.""Josh Matthews2020-08-101-2/+2
| | | | | | | | This reverts commit ecfaba930494ced9eb5a299e42ebcb794d7210ac.
* | When instantiating a CTFont, store the bytes that were used to create it.Josh Matthews2020-08-071-10/+4
| |
* | Skip missing glyphs when drawing 2d canvas text.Josh Matthews2020-08-072-3/+26
|/
* webgl: Support preserveDrawingBuffer.Josh Matthews2020-08-062-14/+22
|
* Revert "Update raqote, font-kit, fontconfig."Josh Matthews2020-08-041-2/+2
| | | | This reverts commit a6ca582a556d19a82b1e9f71015b7e62277d32fa.
* Revert "Update font-kit and freetype and unicode-script."Josh Matthews2020-08-041-1/+1
| | | | This reverts commit 5c0d7998bd28ceb383f553cd7af5a60f472a47ba.
* Revert "Update webrender."Josh Matthews2020-08-041-1/+1
| | | | This reverts commit 2ca1b06e77f28cebeb886f50a6c21c438d4b2f46.
* Update webrender.Josh Matthews2020-07-311-1/+1
|
* Update font-kit and freetype and unicode-script.Josh Matthews2020-07-311-1/+1
|
* Update raqote, font-kit, fontconfig.Josh Matthews2020-07-311-2/+2
|
* Support depth and stencil in webxrAlan Jeffrey2020-07-101-16/+19
|
* canvas: Bail out from font loading if no default font can be loaded.Josh Matthews2020-07-061-9/+20
|
* Support for webxr layer managementAlan Jeffrey2020-06-284-221/+439
|
* style: fix formatting.Emilio Cobos Álvarez2020-06-181-5/+3
|
* style: Remove the dependency on font-kit from style.Emilio Cobos Álvarez2020-06-182-6/+34
| | | | No good reason to have this IMO, and helps remove some #[cfg] blocks.
* Auto merge of #26787 - szeged:texi2d_3, r=jdmbors-servo2020-06-182-3/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 TexImage2D Adds initial support for one of the WebGL2 `TexImage2D` call. I've enabled the `tests/wpt/webgl/tests/deqp/` tests. --- <!-- 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 #26512 - [x] There are tests for these changes @mmatyas @zakorgy @jdm <!-- 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 TexImage2DIstvan Miklos2020-06-182-3/+27
| | | | | | | | Adds initial support for one of the WebGL2 `TexImage2D` call.
* | Auto merge of #26922 - gterzian:shutdown_webrender, r=jdmbors-servo2020-06-171-10/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blockingly shut-down webrender api <!-- Please describe your changes on the following line: --> FIX https://github.com/servo/servo/issues/26876 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * blockingly shut-down webrender when exiting webgl_threadGregory Terzian2020-06-171-10/+8
| |
* | Implement GPUSwapChain and GPUCanvasContext and interface with WebrenderKunal Mohan2020-06-131-3/+6
|/
* Auto merge of #26697 - utsavoza:ugo/issue-11681/22-05-2020, r=jdmbors-servo2020-06-124-14/+277
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement CanvasRenderingContext2d.fillText The PR consists of broadly two main changes: - Implementation of Canvas2dRenderingContext.font - Basic implementation of Canvas2dRenderingContext.fillText Although I am not fully sure about the long term goals for the canvas backend in Servo, I assumed limited scope for font and text handling (should support simple text drawing with font selection) in the current implementation as I believe a more complete implementation would eventually be brought in as a part of #22957. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #11681 - [x] There are tests for these changes
| * Derive Serialize and Deserialize traits for font styles for ↵Utsav Oza2020-06-122-4/+1
| | | | | | | | #[cfg_attr(feature = "servo")]
| * Fix ./mach build --release --with-layout-2020Utsav Oza2020-06-102-26/+110
| |
| * Enable textAlign, textBaseline and direction attributes for canvasUtsav Oza2020-06-104-50/+165
| |
| * Implement CanvasRenderingContext2D.font propertyUtsav Oza2020-06-104-0/+9
| |
| * Revert unnecessary changesUtsav Oza2020-06-101-34/+34
| |
| * 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
| |