
This is required for making corner-shape and backdrop-filter work well together (the path need to be propagated all the way to viz). This uses the internal serialization mechanism of SkPath, and saves it into a mojo array<uint8>. The path is "opaque" but can be serialized to/from an SkPath. Bug: 408498304 Change-Id: I606dc0e78789cda1552bcd4c55a84958b5ba3a91 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6434053 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1443511}
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
The Skia library can be found in //third_party/skia
, and full documentation
is available at https://skia.org/
This directory includes low-level chromium utilities for interacting with Skia:
- Build rules for the Skia library
- Configuration of the library (
config/SkUserConfig.h
) - Serialization of Skia types (
public/mojom
) - Implementations of Skia interfaces for platform behavior, such as fonts and
memory allocation, as well as other miscellaneous utilities (
ext
).
Note that Skia is used directly in many parts of the chromium codebase. This directory is only concerned with code layered on Skia that will be reused frequently, across multiple chromium components.