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