Spike Wayland compositor, hybrid MoonBit WM, SSD decorations, and wasmtime native host
This commit is contained in:
1 parent
880ecd4102
commit
17a8a46cfd
56 files changed
+8924
-11
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
../../../theme.wit
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../types.wit
|
||||
@@ -0,0 +1,37 @@
|
||||
package moonplasma:compositor@0.2.0;
|
||||
|
||||
interface surface {
|
||||
use moonplasma:desktop/types@0.1.0.{size, rect, draw-op};
|
||||
|
||||
/// Unforgeable host handle to a committed client buffer (SHM or DMA-BUF).
|
||||
/// Components cannot read pixels; they can only inspect metadata and
|
||||
/// reference the handle in a `draw-surface` op.
|
||||
resource buffer-surface {
|
||||
id: func() -> u64;
|
||||
size: func() -> size;
|
||||
/// True if the buffer contains an alpha channel requiring blending.
|
||||
has-alpha: func() -> bool;
|
||||
}
|
||||
|
||||
record surface-draw {
|
||||
surface: borrow<buffer-surface>,
|
||||
dst: rect,
|
||||
src: option<rect>,
|
||||
radius: u32,
|
||||
}
|
||||
|
||||
/// Extended render-list op for compositing foreign surfaces & cached layers.
|
||||
variant composite-op {
|
||||
draw(draw-op),
|
||||
draw-surface(surface-draw),
|
||||
push-opacity(u8),
|
||||
pop-opacity,
|
||||
}
|
||||
|
||||
/// Revision-keyed display list to avoid copying unchanged draw-ops across WIT.
|
||||
record render-frame {
|
||||
revision: u64,
|
||||
/// `none` means identical to `revision` — host reuses cached display list.
|
||||
ops: option<list<draw-op>>,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user