Update smithay with ContextId changes

The new type bounds seem to be addressable using `AsGlowRenderer`.

Though things like this will need a different solution when we want to
support Pixman rendering.
This commit is contained in:
Ian Douglas Scott 2025-04-28 12:38:23 -07:00 committed by Victoria Brekenfeld
parent ae1d9ae7ef
commit 982af8ff10
3 changed files with 12 additions and 7 deletions

View file

@ -1011,7 +1011,7 @@ pub struct PostprocessState {
}
impl PostprocessState {
pub fn new_with_renderer<R: Renderer + Offscreen<GlesTexture>>(
pub fn new_with_renderer<R: AsGlowRenderer + Offscreen<GlesTexture>>(
renderer: &mut R,
format: Fourcc,
output_config: PostprocessOutputConfig,
@ -1022,7 +1022,7 @@ impl PostprocessState {
let texture = Offscreen::<GlesTexture>::create_buffer(renderer, format, buffer_size)?;
let texture_buffer = TextureRenderBuffer::from_texture(
renderer,
renderer.glow_renderer(),
texture,
1,
Transform::Normal,
@ -1042,7 +1042,7 @@ impl PostprocessState {
})
}
pub fn track_cursor<R: Renderer + Offscreen<GlesTexture>>(
pub fn track_cursor<R: AsGlowRenderer + Offscreen<GlesTexture>>(
&mut self,
renderer: &mut R,
format: Fourcc,
@ -1069,8 +1069,13 @@ impl PostprocessState {
let texture = Offscreen::<GlesTexture>::create_buffer(renderer, format, buffer_size)?;
let texture_buffer =
TextureRenderBuffer::from_texture(renderer, texture, 1, Transform::Normal, None);
let texture_buffer = TextureRenderBuffer::from_texture(
renderer.glow_renderer(),
texture,
1,
Transform::Normal,
None,
);
let damage_tracker = OutputDamageTracker::new(size, scale, Transform::Normal);