1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Add more profiling scopes (#3332)

This commit is contained in:
Emil Ernerfeldt
2023-09-13 19:32:19 +02:00
committed by GitHub
parent 67a3fcae38
commit 4b5146d35d
4 changed files with 31 additions and 5 deletions

View File

@@ -187,6 +187,7 @@ pub fn apply_native_options_to_window(
native_options: &crate::NativeOptions,
window_settings: Option<WindowSettings>,
) {
crate::profile_function!();
use winit::window::WindowLevel;
window.set_window_level(if native_options.always_on_top {
WindowLevel::AlwaysOnTop
@@ -465,6 +466,8 @@ impl EpiIntegration {
app: &mut dyn epi::App,
event: &winit::event::WindowEvent<'_>,
) -> EventResponse {
crate::profile_function!();
use winit::event::{ElementState, MouseButton, WindowEvent};
match event {