diff options
author | Akemi <der.richter@gmx.de> | 2018-06-12 02:48:31 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-11-13 20:43:29 +0200 |
commit | 9e466ee6214ed302a6846dd40264cf06eb712b3a (patch) | |
tree | 174510e25423da823810d416cb7ceb0392c256b1 /video/out/cocoa_cb_common.swift | |
parent | 317d3ac26634d6719c2c70e3e88acbf0c108fd73 (diff) | |
download | mpv-9e466ee6214ed302a6846dd40264cf06eb712b3a.tar.bz2 mpv-9e466ee6214ed302a6846dd40264cf06eb712b3a.tar.xz |
cocoa-cb: use libmpv's advanced rendering control and timing
this adds support for GPU rendered screenshots, DR (theoretically) and
possible other advanced functions in the future that need to be executed
from the rendering thread.
additionally frames that would be off screen or not be displayed when on
screen are being dropped now.
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 790a07deb8..355fa537e1 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -72,7 +72,6 @@ class CocoaCB: NSObject { } func uninit() { - layer.setVideo(false) window.orderOut(nil) } @@ -81,7 +80,6 @@ class CocoaCB: NSObject { DispatchQueue.main.sync { self.initBackend(vo) } } else { DispatchQueue.main.async { - self.layer.setVideo(true) self.updateWindowSize(vo) self.layer.update() } @@ -106,7 +104,6 @@ class CocoaCB: NSObject { window.makeMain() window.makeKeyAndOrderFront(nil) NSApp.activate(ignoringOtherApps: true) - layer.setVideo(true) if Bool(opts.fullscreen) { DispatchQueue.main.async { @@ -449,7 +446,6 @@ class CocoaCB: NSObject { func shutdown(_ destroy: Bool = false) { setCursorVisiblility(true) - layer.setVideo(false) stopDisplaylink() uninitLightSensor() removeDisplayReconfigureObserver() |