metal: scan out in more circumstances
This commit is contained in:
parent
9e3ad38948
commit
58cdfbcb26
10 changed files with 169 additions and 22 deletions
|
|
@ -154,6 +154,9 @@ impl JayScreencast {
|
|||
on: &OutputNode,
|
||||
texture: &Rc<dyn GfxTexture>,
|
||||
render_hardware_cursors: bool,
|
||||
x_off: i32,
|
||||
y_off: i32,
|
||||
size: Option<(i32, i32)>,
|
||||
) {
|
||||
if !self.running.get() {
|
||||
return;
|
||||
|
|
@ -176,8 +179,9 @@ impl JayScreencast {
|
|||
on.global.preferred_scale.get(),
|
||||
on.global.pos.get(),
|
||||
render_hardware_cursors,
|
||||
0,
|
||||
0,
|
||||
x_off,
|
||||
y_off,
|
||||
size,
|
||||
);
|
||||
self.client.event(Ready {
|
||||
self_id: self.id,
|
||||
|
|
|
|||
|
|
@ -211,6 +211,9 @@ impl WlOutputGlobal {
|
|||
fb: Option<&dyn GfxFramebuffer>,
|
||||
tex: &Rc<dyn GfxTexture>,
|
||||
render_hardware_cursors: bool,
|
||||
x_off: i32,
|
||||
y_off: i32,
|
||||
size: Option<(i32, i32)>,
|
||||
) {
|
||||
if self.pending_captures.is_empty() {
|
||||
return;
|
||||
|
|
@ -295,8 +298,9 @@ impl WlOutputGlobal {
|
|||
self.preferred_scale.get(),
|
||||
self.pos.get(),
|
||||
render_hardware_cursors,
|
||||
-capture.rect.x1(),
|
||||
-capture.rect.y1(),
|
||||
x_off - capture.rect.x1(),
|
||||
y_off - capture.rect.y1(),
|
||||
size,
|
||||
);
|
||||
}
|
||||
if capture.with_damage.get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue