From b7dca4bb2a2cf488407ae051b40782f03fcabc62 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 13 Aug 2026 17:21:26 +0300 Subject: fix(graphics): support high-dpi direct file frames (#2680) --- src/api/schema/panes.rs | 1 + src/api/schema/response.rs | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/api/schema') diff --git a/src/api/schema/panes.rs b/src/api/schema/panes.rs index c8d89c48..6435a422 100644 --- a/src/api/schema/panes.rs +++ b/src/api/schema/panes.rs @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize}; pub(crate) const PANE_GRAPHICS_SET_MAX_BYTES: usize = 512 * 1024; pub(crate) const PANE_GRAPHICS_STREAM_MAX_BYTES: usize = 16 * 1024 * 1024; +pub(crate) const PANE_GRAPHICS_DIRECT_FILE_MAX_BYTES: usize = 400 * 1024 * 1024; pub(crate) const PANE_GRAPHICS_MAX_LAYERS_PER_PANE: usize = 16; pub(crate) const PANE_GRAPHICS_MAX_LAYERS_TOTAL: usize = 64; pub(crate) const PANE_GRAPHICS_MAX_INLINE_BYTES_TOTAL: usize = 64 * 1024 * 1024; diff --git a/src/api/schema/response.rs b/src/api/schema/response.rs index ae5a32e0..da2813a6 100644 --- a/src/api/schema/response.rs +++ b/src/api/schema/response.rs @@ -177,6 +177,8 @@ pub enum ResponseResult { file_frame_formats: Vec, #[serde(default, skip_serializing_if = "Option::is_none")] file_frame_max_bytes: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + file_frame_direct_max_bytes: Option, /// Accepts damage metadata while still consuming a complete canonical file. #[serde(default)] file_frame_damage: bool, -- cgit v1.2.3