chore: format for Rust 2024
This commit is contained in:
parent
0a8da05847
commit
1f7f0c70b7
99 changed files with 414 additions and 442 deletions
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
use crate::{
|
||||
backend::render::{
|
||||
CLEAR_COLOR, CursorMode, GlMultiError, GlMultiRenderer, PostprocessOutputConfig,
|
||||
PostprocessShader, PostprocessState,
|
||||
element::{CosmicElement, DamageElement},
|
||||
init_shaders, output_elements, CursorMode, GlMultiError, GlMultiRenderer,
|
||||
PostprocessOutputConfig, PostprocessShader, PostprocessState, CLEAR_COLOR,
|
||||
init_shaders, output_elements,
|
||||
},
|
||||
config::ScreenFilter,
|
||||
shell::Shell,
|
||||
|
|
@ -13,7 +14,7 @@ use crate::{
|
|||
wayland::{
|
||||
handlers::{
|
||||
compositor::recursive_frame_time_estimation,
|
||||
screencopy::{submit_buffer, FrameHolder, PendingImageCopyData, SessionData},
|
||||
screencopy::{FrameHolder, PendingImageCopyData, SessionData, submit_buffer},
|
||||
},
|
||||
protocols::screencopy::{
|
||||
FailureReason, Frame as ScreencopyFrame, SessionRef as ScreencopySessionRef,
|
||||
|
|
@ -27,11 +28,12 @@ use cosmic_comp_config::output::comp::AdaptiveSync;
|
|||
use smithay::{
|
||||
backend::{
|
||||
allocator::{
|
||||
Fourcc,
|
||||
format::FormatSet,
|
||||
gbm::{GbmAllocator, GbmBuffer},
|
||||
Fourcc,
|
||||
},
|
||||
drm::{
|
||||
DrmDeviceFd, DrmEventMetadata, DrmEventTime, DrmNode, VrrSupport,
|
||||
compositor::{
|
||||
BlitFrameResultError, FrameError, FrameFlags, PrimaryPlaneElement,
|
||||
RenderFrameResult,
|
||||
|
|
@ -39,38 +41,36 @@ use smithay::{
|
|||
exporter::gbm::GbmFramebufferExporter,
|
||||
gbm::GbmFramebuffer,
|
||||
output::DrmOutput,
|
||||
DrmDeviceFd, DrmEventMetadata, DrmEventTime, DrmNode, VrrSupport,
|
||||
},
|
||||
egl::EGLContext,
|
||||
renderer::{
|
||||
buffer_dimensions, buffer_type,
|
||||
Bind, Blit, BufferType, Frame, ImportDma, Offscreen, Renderer, RendererSuper, Texture,
|
||||
TextureFilter, buffer_dimensions, buffer_type,
|
||||
damage::Error as RenderError,
|
||||
element::{
|
||||
Element, Kind, RenderElementStates,
|
||||
texture::TextureRenderElement,
|
||||
utils::{
|
||||
constrain_render_elements, ConstrainAlign, ConstrainScaleBehavior, Relocate,
|
||||
RelocateRenderElement,
|
||||
ConstrainAlign, ConstrainScaleBehavior, Relocate, RelocateRenderElement,
|
||||
constrain_render_elements,
|
||||
},
|
||||
Element, Kind, RenderElementStates,
|
||||
},
|
||||
gles::{
|
||||
element::TextureShaderElement, GlesRenderbuffer, GlesRenderer, GlesTexture, Uniform,
|
||||
GlesRenderbuffer, GlesRenderer, GlesTexture, Uniform, element::TextureShaderElement,
|
||||
},
|
||||
glow::GlowRenderer,
|
||||
multigpu::{ApiDevice, Error as MultiError, GpuManager},
|
||||
sync::SyncPoint,
|
||||
utils::with_renderer_surface_state,
|
||||
Bind, Blit, BufferType, Frame, ImportDma, Offscreen, Renderer, RendererSuper, Texture,
|
||||
TextureFilter,
|
||||
},
|
||||
},
|
||||
desktop::utils::OutputPresentationFeedback,
|
||||
output::{Output, OutputNoMode},
|
||||
reexports::{
|
||||
calloop::{
|
||||
channel::{channel, Event, Sender},
|
||||
timer::{TimeoutAction, Timer},
|
||||
EventLoop, LoopHandle, RegistrationToken,
|
||||
channel::{Event, Sender, channel},
|
||||
timer::{TimeoutAction, Timer},
|
||||
},
|
||||
drm::control::{connector, crtc},
|
||||
wayland_protocols::wp::{
|
||||
|
|
@ -81,7 +81,7 @@ use smithay::{
|
|||
},
|
||||
utils::{Clock, Monotonic, Physical, Point, Rectangle, Transform},
|
||||
wayland::{
|
||||
dmabuf::{get_dmabuf, DmabufFeedbackBuilder},
|
||||
dmabuf::{DmabufFeedbackBuilder, get_dmabuf},
|
||||
presentation::Refresh,
|
||||
seat::WaylandFocus,
|
||||
shm::{shm_format_to_fourcc, with_buffer_contents},
|
||||
|
|
@ -91,12 +91,12 @@ use tracing::{error, info, trace, warn};
|
|||
|
||||
use std::{
|
||||
borrow::{Borrow, BorrowMut},
|
||||
collections::{hash_map, HashMap, HashSet},
|
||||
collections::{HashMap, HashSet, hash_map},
|
||||
mem,
|
||||
sync::{
|
||||
Arc, RwLock,
|
||||
atomic::{AtomicBool, Ordering},
|
||||
mpsc::{Receiver, SyncSender},
|
||||
Arc, RwLock,
|
||||
},
|
||||
thread::JoinHandle,
|
||||
time::Duration,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue