Truly independent web browser
Go to file
Aliaksandr Kalenik d292152e2e LibWeb: Add Skia painting command executor
This change introduces Skia painter available under a flag. It's not
yet match capabilities of Gfx::Painter and is not ready to replace it.

Motivation:
- The current CPU painter is a performance bottleneck on most websites.
  Our own GPU painter implementation is very immature and has received
  relatively little attention.
- There is ongoing effort on building painter that supports affine
  transforms (AffineCommandExecutorCPU) but it is far from being on par
  with the default CPU painter. Skia will allow us to immediately get
  full transformation support for all painting commands.

GPU painting:
I experimented with Ganesh GPU-backend, however profiling revealed that
without sharing viewport texture between WebContent and Browser
processes, it won't bring much performance improvement compared to
CPU-backend. Therefore, I decided to keep this PR focused on
implementing most of painting commands and switch to GPU-backend in
future changes.

Text rendring:
Skia painter uses glyph bitmaps produced by LibGfx. Using Skia for text
rendering will require large refactoring of the font rendering
subsystem. Currently, it's impossible to construct SkFont right before
rendering because Gfx::VectorFont can't be serialized back into sequence
of bytes.

There is a problem with ugly include paths like:
`#include <core/SkBitmap.h>`.
I would prefer to have skia prefix in the path. There was an attempt to
fix that but PR was rejected https://github.com/microsoft/vcpkg/pull/32660

Regressions compared to Gfx::Painter:
- DrawText is not implemented
- PaintTextShadow is not implemented
- PaintRadialGradient and PaintLinearGradient do not support "transition
  hints" and repeat length
- PaintConicGradient is not implemented
- DrawTriangleWave is not implemented
- DrawLine does not account for line style property
- DrawScaledBitmap and DrawScaledImmutableBitmap do not account for
  scaling mode property
2024-06-18 21:05:50 +02:00
.devcontainer Meta: Update Documentation and CI for repo move 2024-06-03 10:53:53 +02:00
.github CMake: Create a set of vcpkg overlay triplets for sanitizers 2024-06-18 04:47:57 -06:00
AK AK: Read signed LEB128 integers without 64-bit assumptions 2024-06-18 16:58:33 +02:00
Base LibGfx: Remove TGA image format support 2024-06-17 21:57:35 +02:00
Documentation Documentation: Add missing required Fedora package 2024-06-09 21:05:50 -04:00
Ladybird Ladybird+LibWeb+WebContent: Add an option to enable Skia painter 2024-06-18 21:05:50 +02:00
Meta LibWeb: Add motion preference 2024-06-18 10:31:54 -04:00
Tests LibWasm: Add missing spec extern and prevent spec extern re-use 2024-06-18 16:58:33 +02:00
Toolchain Meta+Toolchain+CI: Add a script to bootstrap vcpkg 2024-06-06 11:27:03 -04:00
Userland LibWeb: Add Skia painting command executor 2024-06-18 21:05:50 +02:00
.clang-format Meta: Support using clang-format on Objective-C++ files 2023-08-22 21:36:19 -04:00
.clang-tidy Everywhere: Remove references to the kernel 2024-06-03 10:53:53 +02:00
.editorconfig Meta: Add .editorconfig 2022-09-10 17:32:55 +01:00
.gitattributes LibGfx: Remove support for the various "portable" image formats 2024-06-17 21:57:35 +02:00
.gitignore Meta: Ignore only Build directories 2024-06-06 11:27:03 -04:00
.gn Meta: Automatically generate a compilation database for clangd 2023-11-14 14:29:35 -05:00
.mailmap Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2023-07-15 16:21:29 +02:00
.pre-commit-config.yaml Meta: Update Documentation and CI for repo move 2024-06-03 10:53:53 +02:00
.prettierignore LibJS: Add DisposableStack{, Prototype, Constructor} 2023-01-23 09:56:50 +00:00
.prettierrc Meta: Move prettier config files to the root of the repository 2020-08-24 18:21:33 +02:00
.ycm_extra_conf.py Meta+Documentation: Switch default build dir to Build/Ladybird 2024-06-04 13:44:22 -06:00
CMakeLists.txt Meta+CMake: Move vcpkg directives to ladybird.sh and CMakePresets 2024-06-07 11:15:48 -04:00
CMakePresets.json CMake: Create a set of vcpkg overlay triplets for sanitizers 2024-06-18 04:47:57 -06:00
CONTRIBUTING.md Meta: Update for GitHub org rename to LadybirdBrowser 2024-06-09 13:02:56 +02:00
flake.lock nix: Clean up files, use good practices 2024-03-25 14:19:34 -06:00
flake.nix Meta: Remove SerenityOS components not needed for Ladybird 2024-06-03 10:53:53 +02:00
LICENSE Meta: Update root LICENSE to say Ladybird instead of SerenityOS 2024-06-04 07:25:44 +02:00
README.md Everywhere: Remove LibSQL, SQLServer, and the sql REPL :^) 2024-06-06 11:27:03 -04:00
SECURITY.md Meta: Update for GitHub org rename to LadybirdBrowser 2024-06-09 13:02:56 +02:00
vcpkg-configuration.json LibGfx: Use the woff2 library to decode WOFF2 font files 2024-06-07 18:42:12 +02:00
vcpkg.json LibWeb: Add Skia painting command executor 2024-06-18 21:05:50 +02:00

Ladybird

Ladybird is a truly independent web browser, using a novel engine based on web standards.

Important

Ladybird is in a pre-alpha state, and only suitable for use by developers

Features

We aim to build a complete, usable browser for the modern web.

Ladybird uses a multi-process architecture with a main UI process, several WebContent renderer processes, an ImageDecoder process, and a RequestServer process.

Image decoding and network connections are done out of process to be more robust against malicious content. Each tab has its own renderer process, which is sandboxed from the rest of the system.

At the moment, many core library support components are inherited from SerenityOS:

  • LibWeb: Web rendering engine
  • LibJS: JavaScript engine
  • LibWasm: WebAssembly implementation
  • LibCrypto/LibTLS: Cryptography primitives and Transport Layer Security
  • LibHTTP: HTTP/1.1 client
  • LibGfx: 2D Graphics Library, Image Decoding and Rendering
  • LibArchive: Archive file format support
  • LibUnicode, LibLocale: Unicode and locale support
  • LibAudio, LibVideo: Audio and video playback
  • LibCore: Event loop, OS abstraction layer
  • LibIPC: Inter-process communication

How do I build and run this?

See build instructions for information on how to build Ladybird.

Ladybird runs on Linux, macOS, Windows (with WSL2), and many other *Nixes.

How do I read the documentation?

Code-related documentation can be found in the documentation folder.

Get in touch and participate!

Join our Discord server to participate in development discussion.

Before opening an issue, please see the issue policy.

A general guide for contributing can be found in CONTRIBUTING.md.

License

Ladybird is licensed under a 2-clause BSD license.