• Home
Name Date Size #Lines LOC

..--

BUILD.bazelD03-May-2024397 2116

PietTypes.hD03-May-20241.3 KiB6033

README.mdD03-May-20241.1 KiB2719

Render.cppD03-May-2024658 2511

Render.hD03-May-20242.4 KiB7942

Scene.cppD03-May-20242.8 KiB10479

Scene.hD03-May-20241.6 KiB5122

README.md

1piet-gpu Utilities
2==================
3
4This directory provides utilities to ease integrating Skia C++ code with the piet-gpu/pgpu-render
5Rust crate's C FFI bindings.
6
7### Building the piet-gpu library
8
9The code depends on a third-party Rust library which must be compiled manually:
10
111. First make sure that a recent version of `cargo` is installed on your system. Simply follow the
12   instructions on https://doc.rust-lang.org/cargo/getting-started/installation.html to get started.
13
142. Use the Makefile under `//third_party/piet-gpu` to compile the library:
15```
16$ cd $SKIA_ROOT/third_party/piet-gpu
17$ make debug
18```
19This should create `$SKIA_ROOT/third_party/piet-gpu/out/debug/libpgpu_render.dylib` if the build is
20successful. For a release build, run `make release` instead.
21
22### Building Skia with piet support
23
24Build rules are currently only provided for the GN build. To enable piet support, add
25`skia_use_piet=true` to your GN args. This will enable both the Skia GN targets and define the
26`SK_ENABLE_PIET_GPU` macro which can be used in C++ code to query for support.
27