Migrate DRM outputs to Smithay DrmCompositor
This commit is contained in:
1 parent
cd19691f52
commit
0d7203f84b
8 files changed
+337
-66
No files matched your search
@@ -403,14 +403,20 @@ pub(super) fn rounded_window_elements(
|
||||
)
|
||||
.into_iter()
|
||||
.map(|inner| {
|
||||
RoundedSurfaceRenderElement {
|
||||
inner,
|
||||
programs: programs.clone(),
|
||||
clip_rect: clip,
|
||||
radius,
|
||||
clip_changed,
|
||||
if radius == 0.0 {
|
||||
// Rectangular clipping is already enforced by the outer crop
|
||||
// element. Keep the raw surface available for fullscreen scanout.
|
||||
WindowContentRenderElement::from(inner)
|
||||
} else {
|
||||
RoundedSurfaceRenderElement {
|
||||
inner,
|
||||
programs: programs.clone(),
|
||||
clip_rect: clip,
|
||||
radius,
|
||||
clip_changed,
|
||||
}
|
||||
.into()
|
||||
}
|
||||
.into()
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
@@ -485,8 +485,9 @@ impl RenderElement<GlesRenderer> for RoundedSurfaceRenderElement {
|
||||
}
|
||||
}
|
||||
|
||||
fn underlying_storage(&self, renderer: &mut GlesRenderer) -> Option<UnderlyingStorage<'_>> {
|
||||
self.inner.underlying_storage(renderer)
|
||||
fn underlying_storage(&self, _renderer: &mut GlesRenderer) -> Option<UnderlyingStorage<'_>> {
|
||||
// Storage is deliberately hidden: plane scanout would bypass clipping.
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user