aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas
Commit message (Collapse)AuthorAgeFilesLines
* Further changes required by ServoOriol Brufau2023-05-241-0/+2
|
* Start the transition to workspace dependenciesMartin Robinson2023-05-171-15/+15
| | | | | | | This will ultimately make it simpler to update crate dependencies and reduce duplicate when specifying requirements. Generally, this change does not touch dependencies that are only used by a single crate. We could consider moving them to workspace dependencies in the future.
* Bump surfman to 0.6Thomas Gardner2023-02-241-1/+1
| | | | | Update to the new release of surfman, and consume it without using the `patches` section in Cargo.toml.
* Use crates.io release of raqoteAlex Touchet2023-02-081-1/+1
|
* Bump euclid to 0.22Martin Robinson2023-01-264-11/+11
| | | | | | | | | | | | | - Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed.
* Update font-kit.Josh Matthews2022-04-011-2/+2
|
* Updated cssparser dependency to 0.29.Lewin Probst2021-11-181-1/+1
| | | | Signed-off-by: Lewin Probst <info@emirror.de>
* feat: shorten thread namesyvt2021-07-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel imposes a 15-byte limit on thread names[1]. This means information that does not fit in this limit, e.g., the pipeline ID of layout and script threads, is lost in a debugger and profiler (see the first column of the table below). This commit shortens the thread names used in Servo to maximize the amount of information conveyed. It also rectifies some inconsistencies in the names. | Before | After | |-------------------|-------------------| | `BluetoothThread` | `Bluetooth` | | `CanvasThread` | `Canvas` | | `display alert d` | `AlertDialog` | | `FontCacheThread` | `FontCache` | | `GLPlayerThread` | `GLPlayer` | | `HTML Parser` | `Parse:www.examp` | | `LayoutThread Pi` | `Layout(1,1)` | | `Memory profiler` | `MemoryProfiler` | | `Memory profiler` | `MemoryProfTimer` | | `OfflineAudioCon` | `OfflineACResolv` | | `PullTimelineMar` | `PullTimelineDat` | | `ScriptThread Pi` | `Script(1,1)` | | `WebWorker for h` | `WW:www.example.` | | `ServiceWorker f` | `SW:www.example.` | | `ServiceWorkerMa` | `SvcWorkerManage` | | `Time profiler t` | `TimeProfTimer` | | `Time profiler` | `TimeProfiler` | | `WebGL thread` | `WebGL` | | `Choose a device` | `DevicePicker` | | `Pick a file` | `FilePicker` | | `Pick files` | `FilePicker` | [1]: https://stackoverflow.com/questions/5026531/thread-name-longer-than-15-chars
* 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
|