mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-28 08:54:04 +00:00
Extract gsvg_renderer
from gcore
, remove gcore/vello
feature (#2760)
Extract `gsvg_renderer` from `gcore`, remove `gcore/vello` feature
This commit is contained in:
parent
ffc6c5532b
commit
9c4ab34a58
26 changed files with 546 additions and 368 deletions
|
@ -6,6 +6,7 @@ use dyn_any::StaticType;
|
|||
use glam::UVec2;
|
||||
use graphene_application_io::{ApplicationIo, EditorApi, SurfaceHandle};
|
||||
use graphene_core::{Color, Ctx};
|
||||
pub use graphene_svg_renderer::RenderContext;
|
||||
use std::sync::Arc;
|
||||
use vello::{AaConfig, AaSupport, RenderParams, Renderer, RendererOptions, Scene};
|
||||
use wgpu::{Origin3d, SurfaceConfiguration, TextureAspect};
|
||||
|
@ -50,8 +51,6 @@ unsafe impl StaticType for Surface {
|
|||
type Static = Surface;
|
||||
}
|
||||
|
||||
pub use graphene_core::renderer::RenderContext;
|
||||
|
||||
impl WgpuExecutor {
|
||||
pub async fn render_vello_scene(&self, scene: &Scene, surface: &WgpuSurface, width: u32, height: u32, context: &RenderContext, background: Color) -> Result<()> {
|
||||
let surface = &surface.surface.inner;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue