head-management: add drm-color-space-setter-v1 extension
This commit is contained in:
parent
15e68fc551
commit
1a306c4fa9
7 changed files with 187 additions and 0 deletions
|
|
@ -131,6 +131,8 @@ enum HeadOp {
|
|||
SetVrrMode(VrrMode),
|
||||
SetTearingMode(TearingMode),
|
||||
SetFormat(&'static Format),
|
||||
SetTransferFunction(BackendTransferFunction),
|
||||
SetColorSpace(BackendColorSpace),
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, Default)]
|
||||
|
|
@ -280,6 +282,10 @@ impl HeadManagers {
|
|||
ext.send_mode(state);
|
||||
head.session.schedule_done();
|
||||
}
|
||||
if let Some(ext) = &head.ext.drm_color_space_setter_v1 {
|
||||
ext.send_supported(state);
|
||||
head.session.schedule_done();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -310,6 +316,10 @@ impl HeadManagers {
|
|||
ext.send_state(state);
|
||||
head.session.schedule_done();
|
||||
}
|
||||
if let Some(ext) = &head.ext.drm_color_space_setter_v1 {
|
||||
ext.send_supported(state);
|
||||
head.session.schedule_done();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue