mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 21:18:12 +08:00
Review
This commit is contained in:
@@ -169,6 +169,5 @@ pub fn start() -> ExitCode {
|
|||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "windows"))]
|
|
||||||
ExitCode::SUCCESS
|
ExitCode::SUCCESS
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,9 +15,11 @@ pub(crate) enum TextureImportError {
|
|||||||
InvalidHandle(String),
|
InvalidHandle(String),
|
||||||
#[error("Unsupported texture format: {format:?}")]
|
#[error("Unsupported texture format: {format:?}")]
|
||||||
UnsupportedFormat { format: cef_color_type_t },
|
UnsupportedFormat { format: cef_color_type_t },
|
||||||
|
#[cfg(not(target_os = "macos"))]
|
||||||
#[error("Hardware acceleration not available: {reason}")]
|
#[error("Hardware acceleration not available: {reason}")]
|
||||||
HardwareUnavailable { reason: String },
|
HardwareUnavailable { reason: String },
|
||||||
#[error("Vulkan operation failed: {operation}")]
|
#[error("Vulkan operation failed: {operation}")]
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
VulkanError { operation: String },
|
VulkanError { operation: String },
|
||||||
#[error("Platform-specific error: {message}")]
|
#[error("Platform-specific error: {message}")]
|
||||||
PlatformError { message: String },
|
PlatformError { message: String },
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ pub(crate) struct HostHandle {
|
|||||||
child: Arc<Mutex<Child>>,
|
child: Arc<Mutex<Child>>,
|
||||||
shutting_down: Arc<AtomicBool>,
|
shutting_down: Arc<AtomicBool>,
|
||||||
died_reported: Arc<AtomicBool>,
|
died_reported: Arc<AtomicBool>,
|
||||||
#[cfg_attr(not(feature = "accelerated_paint"), expect(dead_code))]
|
#[cfg_attr(any(not(feature = "accelerated_paint"), target_os = "windows"), expect(dead_code))]
|
||||||
host_acceleration: bool,
|
host_acceleration: bool,
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
_job: Option<platform::win::KillOnCloseJob>,
|
_job: Option<platform::win::KillOnCloseJob>,
|
||||||
|
|||||||
Reference in New Issue
Block a user