Merge pull request #12697 from tellowkrinkle:FasterCocoaWindows
authortellowkrinkle <tellowkrinkle@users.noreply.github.com>
Sun, 14 Oct 2018 18:18:05 +0000 (13:18 -0500)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Sun, 14 Oct 2018 18:18:05 +0000 (21:18 +0300)
commit803ff64b1405a75f46dda31c3cc19c757100220d
tree14b833de9f505ce9349cff682b668676b860ed60
parent824241ad5cc6f68e30d08c038588b4d2356bbacf
Merge pull request #12697 from tellowkrinkle:FasterCocoaWindows

* Make cocoa windows draw faster

* Use a CALayer for rendering when possible Uses GPU to scale images, which is important because retina macs will want window sizes much larger (in pixels) than the image

* Fix mouse logic for cocoa windows

* Only halve resolution on retina if image is larger than display
modules/highgui/src/window_cocoa.mm