From `iced::system::Information`'s `graphics_backend`.
(graphics_backend: &str)
| 23 | impl PlotRenderStrategy { |
| 24 | /// From `iced::system::Information`'s `graphics_backend`. |
| 25 | pub fn from_graphics_backend(graphics_backend: &str) -> Self { |
| 26 | #[cfg(feature = "canvas")] |
| 27 | { |
| 28 | match graphics_backend.trim() { |
| 29 | "tiny-skia" => Self::Canvas, |
| 30 | _ => Self::Shader, |
| 31 | } |
| 32 | } |
| 33 | #[cfg(not(feature = "canvas"))] |
| 34 | { |
| 35 | _ = graphics_backend; |
| 36 | Self::Shader |
| 37 | } |
| 38 | } |
| 39 | pub(crate) fn force_cpu_picking(self) -> bool { |
| 40 | #[cfg(feature = "canvas")] |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected