skia_safe/gpu/ganesh/
driver_bug_workarounds.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub use skia_bindings::GrDriverBugWorkarounds as DriverBugWorkarounds;
#[test]
fn test_driver_bug_workarounds_naming() {
    fn _n(workarounds: &DriverBugWorkarounds) {
        let _ = workarounds.max_fragment_uniform_vectors_32;
    }
}

pub trait ApplyOverrides {
    fn apply_overrides(&mut self, workarounds: &DriverBugWorkarounds);
}

impl ApplyOverrides for DriverBugWorkarounds {
    fn apply_overrides(&mut self, workarounds: &DriverBugWorkarounds) {
        unsafe { self.applyOverrides(workarounds) }
    }
}