From 31a1bd5cdc0c95edfaf45f9325acb3cd070ec9b3 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Fri, 31 Jan 2020 07:35:28 -0800 Subject: [PATCH] profiling motivated perf improvements in build draw commands --- src/editor/cursor.rs | 6 +++-- src/editor/mod.rs | 57 +++++++++++++++++++++++++++----------------- src/renderer/mod.rs | 40 ++++++++++++++++--------------- 3 files changed, 60 insertions(+), 43 deletions(-) diff --git a/src/editor/cursor.rs b/src/editor/cursor.rs index 92a87be..a602fc2 100644 --- a/src/editor/cursor.rs +++ b/src/editor/cursor.rs @@ -1,4 +1,6 @@ use std::collections::HashMap; +use std::sync::Arc; + use skulpin::skia_safe::Color4f; use super::style::{Style, Colors}; @@ -39,7 +41,7 @@ pub struct Cursor { pub blinkwait: Option, pub blinkon: Option, pub blinkoff: Option, - pub style: Option