Native Skia renderer provider for MoUI
Dependencies
pub(open) trait NativePlatformSurface {
fn surface_route(Self) -> SkiaSurfaceRoute
fn gpu_promoted(Self) -> Bool
fn platform_label(Self) -> String
}pub(all) struct HostGpuPresentOutcome {
// private fields
}pub struct HostGpuPresentTarget {
// private fields
}fn HostGpuPresentTarget::new(description~ : String, create_window_surface~ : (GpuContext?, SurfaceMetrics) -> Surface?, present_gpu~ : (GpuContext?, Surface) -> HostGpuPresentOutcome) -> HostGpuPresentTargetfn SkiaEmojiFontFallbackDiagnostic::deterministic_color_emoji_ready(self : SkiaEmojiFontFallbackDiagnostic) -> Boolfn SkiaEmojiFontFallbackDiagnostic::emoji_fallback_attempted(self : SkiaEmojiFontFallbackDiagnostic) -> Boolfn SkiaEmojiFontFallbackDiagnostic::fallback_character(self : SkiaEmojiFontFallbackDiagnostic) -> Intfn SkiaEmojiFontFallbackDiagnostic::fallback_language_tag_count(self : SkiaEmojiFontFallbackDiagnostic) -> Intfn SkiaEmojiFontFallbackDiagnostic::fallback_language_tags(self : SkiaEmojiFontFallbackDiagnostic) -> Array[String]fn SkiaEmojiFontFallbackDiagnostic::fallback_request_language_count(self : SkiaEmojiFontFallbackDiagnostic) -> Intfn SkiaEmojiFontFallbackDiagnostic::fallback_request_ready(self : SkiaEmojiFontFallbackDiagnostic) -> Boolfn SkiaEmojiFontFallbackDiagnostic::fallback_script_tag(self : SkiaEmojiFontFallbackDiagnostic) -> Stringfn SkiaEmojiFontFallbackDiagnostic::missing_glyph_recovery_ready(self : SkiaEmojiFontFallbackDiagnostic) -> Boolfn SkiaEmojiFontFallbackDiagnostic::resolved_font_name(self : SkiaEmojiFontFallbackDiagnostic) -> Stringfn SkiaEmojiFontFallbackDiagnostic::resolved_missing_glyph_count(self : SkiaEmojiFontFallbackDiagnostic) -> Intfn SkiaEmojiFontFallbackDiagnostic::text_system_id(self : SkiaEmojiFontFallbackDiagnostic) -> Stringpub struct SkiaHybridRenderer {
// private fields
}fn SkiaHybridRenderer::drain_present_completions(self : SkiaHybridRenderer) -> Array[RenderPresentCompletion]fn SkiaHybridRenderer::render_frame(self : SkiaHybridRenderer, submission : RenderFrameSubmission) -> RenderFrameResultpub struct SkiaPresentTarget {
// private fields
}fn SkiaPresentTarget::new(description~ : String, present~ : (SkiaPixelFrame) -> Bool) -> SkiaPresentTargetpub struct SkiaRasterRenderer {
// private fields
}fn SkiaRasterRenderer::apply_image_resource_load_completion(self : SkiaRasterRenderer, completion : ImageResourceLoadCompletion) -> Boolfn SkiaRasterRenderer::draw_platform_view_pixels(self : SkiaRasterRenderer, pixels : Bytes, src_width : Int, src_height : Int, src_stride : Int, dst_x : Double, dst_y : Double, dst_width : Double, dst_height : Double) -> Unitfn SkiaRasterRenderer::record_frame_picture(self : SkiaRasterRenderer, frame : DrawFrame) -> Picture?fn SkiaRasterRenderer::render(self : SkiaRasterRenderer, commands : Array[DrawCommand]) -> Unit raise SkiaRendererErrorfn SkiaRasterRenderer::render_frame(self : SkiaRasterRenderer, frame : DrawFrame) -> RenderFrameResultfn SkiaRasterRenderer::resize(self : SkiaRasterRenderer, metrics : SurfaceMetrics) -> Unit raise SkiaRendererErrorfn SkiaRasterRenderer::set_platform_view_draw_fn(self : SkiaRasterRenderer, draw_fn : () -> Unit?) -> Unitfn SkiaRasterRenderer::to_renderer_session(self : SkiaRasterRenderer, image_source? : HostImageSource, image_decoder? : RendererImageDecoder?, native_surface? : NativeSurface?) -> RendererSessionfn SkiaRasterRenderer::unsupported_command_diagnostics(self : SkiaRasterRenderer) -> Array[SkiaUnsupportedCommandDiagnostic]fn SkiaTextSelectionGeometryDiagnostic::bidi_visual_order_observed(self : SkiaTextSelectionGeometryDiagnostic) -> Boolfn SkiaTextSelectionGeometryDiagnostic::hit_test_inside(self : SkiaTextSelectionGeometryDiagnostic) -> Boolfn SkiaTextSelectionGeometryDiagnostic::hit_test_line_index(self : SkiaTextSelectionGeometryDiagnostic) -> Intfn SkiaTextSelectionGeometryDiagnostic::hit_test_offset(self : SkiaTextSelectionGeometryDiagnostic) -> Intfn SkiaTextSelectionGeometryDiagnostic::line_count(self : SkiaTextSelectionGeometryDiagnostic) -> Intfn SkiaTextSelectionGeometryDiagnostic::selected_line_count(self : SkiaTextSelectionGeometryDiagnostic) -> Intfn SkiaTextSelectionGeometryDiagnostic::selection_range(self : SkiaTextSelectionGeometryDiagnostic) -> TextRangefn SkiaTextSelectionGeometryDiagnostic::selection_rect_count(self : SkiaTextSelectionGeometryDiagnostic) -> Intfn SkiaTextSelectionGeometryDiagnostic::visual_order_differs(self : SkiaTextSelectionGeometryDiagnostic) -> Boolfn SkiaTextSelectionGeometryDiagnostic::visual_segment_count(self : SkiaTextSelectionGeometryDiagnostic) -> Intfn SkiaTextVisualOrderDiagnostic::logical_cluster_count(self : SkiaTextVisualOrderDiagnostic) -> Intfn SkiaTextVisualOrderDiagnostic::visual_order_differs(self : SkiaTextVisualOrderDiagnostic) -> Boolfn create_hybrid_renderer(platform : NativeGpuPlatform, requested : NativeRendererMode, metrics : SurfaceMetrics, target : SkiaPresentTarget, gpu_available~ : Bool, gpu_promoted~ : Bool, gpu_target? : HostGpuPresentTarget?, font_resolution? : SkiaFontResolution, async_image_loading? : Bool) -> SkiaHybridRenderer raise SkiaRendererErrorfn create_with_present_target(metrics : SurfaceMetrics, target : SkiaPresentTarget, font_resolution? : SkiaFontResolution, async_image_loading? : Bool) -> SkiaRasterRenderer raise SkiaRendererErrorfn create_with_present_target_and_route(metrics : SurfaceMetrics, target : SkiaPresentTarget, surface_route? : SkiaSurfaceRoute, gpu_target? : HostGpuPresentTarget?, font_resolution? : SkiaFontResolution, async_image_loading? : Bool) -> SkiaRasterRenderer raise SkiaRendererErrorfn[P : NativePlatformSurface] resolve_surface_route(platform : P, requested : NativeRendererMode, gpu_available~ : Bool, gpu_promoted~ : Bool) -> SkiaSurfaceRoutefn skia_emoji_font_fallback_diagnostic(text? : String, font? : FontSpec, font_resolution? : SkiaFontResolution) -> SkiaEmojiFontFallbackDiagnostic?fn skia_image_load_completion_from_bytes(source : String, bytes : Bytes, background_io? : Bool, background_decode? : Bool) -> ImageResourceLoadCompletionfn skia_provider_capabilities(provider_id~ : String, backend~ : RendererBackendKind) -> Array[RendererBackendFeatureCapability]fn skia_text_selection_geometry_diagnostic(text : String, selection? : TextRange?, font? : FontSpec, max_width? : Double, font_resolution? : SkiaFontResolution) -> SkiaTextSelectionGeometryDiagnostic?fn skia_text_visual_order_diagnostic(text : String, font? : FontSpec, font_resolution? : SkiaFontResolution) -> SkiaTextVisualOrderDiagnostic?Native Skia renderer provider for MoUI
Dependencies