Use shared text system on Linux and Windows (#10098)
closes #10129 closes #10269 Release Notes: - N/A
This commit is contained in:
parent
8f69eac402
commit
bfd9bb8a7c
9 changed files with 33 additions and 481 deletions
|
@ -57,7 +57,7 @@ pub(crate) struct WindowsPlatformInner {
|
|||
background_executor: BackgroundExecutor,
|
||||
pub(crate) foreground_executor: ForegroundExecutor,
|
||||
main_receiver: flume::Receiver<Runnable>,
|
||||
text_system: Arc<WindowsTextSystem>,
|
||||
text_system: Arc<CosmicTextSystem>,
|
||||
callbacks: Mutex<Callbacks>,
|
||||
pub raw_window_handles: RwLock<SmallVec<[HWND; 4]>>,
|
||||
pub(crate) dispatch_event: OwnedHandle,
|
||||
|
@ -155,7 +155,7 @@ impl WindowsPlatform {
|
|||
let dispatcher = Arc::new(WindowsDispatcher::new(main_sender, dispatch_event.to_raw()));
|
||||
let background_executor = BackgroundExecutor::new(dispatcher.clone());
|
||||
let foreground_executor = ForegroundExecutor::new(dispatcher);
|
||||
let text_system = Arc::new(WindowsTextSystem::new());
|
||||
let text_system = Arc::new(CosmicTextSystem::new());
|
||||
let callbacks = Mutex::new(Callbacks::default());
|
||||
let raw_window_handles = RwLock::new(SmallVec::new());
|
||||
let settings = RefCell::new(WindowsPlatformSystemSettings::new());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue