From 9e466ee6214ed302a6846dd40264cf06eb712b3a Mon Sep 17 00:00:00 2001 From: Akemi Date: Tue, 12 Jun 2018 02:48:31 +0200 Subject: 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. --- video/out/cocoa_cb_common.swift | 4 ---- 1 file changed, 4 deletions(-) (limited to 'video/out/cocoa_cb_common.swift') 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() -- cgit v1.2.3