xref: /aosp_15_r20/external/skia/relnotes/GraphiteLogPriority.md (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1Graphite's logging priority can now be adjusted by defining
2`SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY` in `SkUserConfig.h` to a value specified by the
3`skgpu::graphite::LogPriority` enum.
4
5For example:
6```
7#define SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY skgpu::graphite::LogPriority::kWarning
8```
9
10Would cause Graphite to log warnings, non-fatal errors, and fatal errors. However, debug logs would
11be omitted.
12
13`SKGPU_GRAPHITE_LOWEST_ACTIVE_LOG_PRIORITY` will default to `kWarning` in debug builds, and `kError`
14in release builds.
15