diff --git a/src/gpu/vulkan/engine.rs b/src/gpu/vulkan/engine.rs index 3e820da8..b7f862de 100644 --- a/src/gpu/vulkan/engine.rs +++ b/src/gpu/vulkan/engine.rs @@ -13,7 +13,7 @@ use vulkano::{ use skia_safe::gpu::vk::{BackendContext, GetProcOf}; use skia_safe::gpu::{direct_contexts, surfaces, Budgeted, DirectContext, SurfaceOrigin}; -use skia_safe::{ColorSpace, ISize, ImageInfo, Surface, Data}; +use skia_safe::{ColorSpace, ISize, ImageInfo, Surface}; thread_local!( static VK_CONTEXT: RefCell> = const { RefCell::new(None) }; ); diff --git a/src/gpu/vulkan/renderer.rs b/src/gpu/vulkan/renderer.rs index 793cb979..411e0193 100644 --- a/src/gpu/vulkan/renderer.rs +++ b/src/gpu/vulkan/renderer.rs @@ -2,7 +2,7 @@ #![allow(unused_imports)] use ash::vk::Handle; use std::{ - cell::RefCell, collections::HashMap, ptr, sync::Arc + cell::RefCell, ptr, sync::Arc }; use vulkano::{ device::{ @@ -22,7 +22,6 @@ use vulkano::{ use skia_safe::{ gpu::{self, backend_render_targets, direct_contexts, surfaces, vk}, - Color, Matrix, }; use super::{supported_vulkano_formats, to_sk_format}; @@ -31,7 +30,7 @@ use super::{supported_vulkano_formats, to_sk_format}; use winit::{ dpi::{LogicalSize, PhysicalSize}, event_loop::ActiveEventLoop, - window::{Window, WindowId}, + window::{Window}, }; thread_local!(