| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| BUILD.bazel | D | 03-May-2024 | 397 | 21 | 16 | |
| PietTypes.h | D | 03-May-2024 | 1.3 KiB | 60 | 33 | |
| README.md | D | 03-May-2024 | 1.1 KiB | 27 | 19 | |
| Render.cpp | D | 03-May-2024 | 658 | 25 | 11 | |
| Render.h | D | 03-May-2024 | 2.4 KiB | 79 | 42 | |
| Scene.cpp | D | 03-May-2024 | 2.8 KiB | 104 | 79 | |
| Scene.h | D | 03-May-2024 | 1.6 KiB | 51 | 22 |
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