color-management-v1: implement target color volume
This commit is contained in:
parent
5ad5c5cbcf
commit
04f280aabe
10 changed files with 249 additions and 64 deletions
|
|
@ -560,8 +560,8 @@ impl MetalConnector {
|
|||
}
|
||||
return None;
|
||||
};
|
||||
if ct.cd.id != self.state.color_manager.srgb_srgb().id {
|
||||
// Direct scanout requires identical color descriptions.
|
||||
if !ct.cd.embeds_into(self.state.color_manager.srgb_srgb()) {
|
||||
// Direct scanout requires embeddable color descriptions.
|
||||
return None;
|
||||
}
|
||||
if ct.alpha.is_some() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue