screenshot-ui: Pre-compute PrimaryGpuTexture

This commit is contained in:
Ivan Molodetskikh
2024-07-08 10:04:43 +04:00
parent fc2be2b8d0
commit 4cc195b681
3 changed files with 53 additions and 70 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ use super::texture::TextureRenderElement;
use crate::backend::tty::{TtyFrame, TtyRenderer, TtyRendererError};
/// Wrapper for a texture from the primary GPU for rendering with the primary GPU.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct PrimaryGpuTextureRenderElement(pub TextureRenderElement<GlesTexture>);
impl Element for PrimaryGpuTextureRenderElement {