Pass CVImageBuffers into GPUI instead of IOSurfaces

This commit is contained in:
Nathan Sobo
2022-09-13 14:10:13 +02:00
committed by Antonio Scandurra
parent 0430bbf7d9
commit 531ffc01c9
8 changed files with 95 additions and 96 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ png = "0.16"
simplelog = "0.9"
[target.'cfg(target_os = "macos")'.dependencies]
io_surface = { path = "../io_surface" }
media = { path = "../media" }
anyhow = "1"
block = "0.1"
cocoa = "0.24"
+1 -2
View File
@@ -39,7 +39,7 @@ struct PathSprite {
pub struct Surface {
pub bounds: RectF,
pub native_surface: io_surface::IOSurface,
pub image_buffer: media::core_video::CVImageBuffer,
}
impl Renderer {
@@ -790,7 +790,6 @@ impl Renderer {
let target_size = surface.bounds.size() * scale_factor;
// let corner_radius = surface.corner_radius * scale_factor;
// let border_width = surface.border.width * scale_factor;
// let (alloc_id, atlas_bounds) = self.image_cache.render(&surface.native_surface);
}
// command_encoder.set_render_pipeline_state(&self.image_pipeline_state);