mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
mac/vulkan: log EDR changes of metal layer
since we have a mapping layer between vulkan and metal (MoltenVK) we don't actually know which EDR data is used/mapped to. log EDR data changes to actually see which EDR data was chosen.
This commit is contained in:
@@ -52,6 +52,14 @@ class MetalLayer: CAMetalLayer {
|
||||
}
|
||||
}
|
||||
|
||||
override var edrMetadata: CAEDRMetadata? {
|
||||
didSet {
|
||||
if edrMetadata != oldValue {
|
||||
log.verbose("Metal layer HDR metadata changed: \(edrMetadata?.description ?? "nil")")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
init(common com: MacCommon) {
|
||||
common = com
|
||||
super.init()
|
||||
|
||||
Reference in New Issue
Block a user