Unverified Commit 1b717c73 authored by alexander-gorshenev's avatar alexander-gorshenev Committed by GitHub

Make native MacosGLLayer asynchronous (#133)

parent 5878977b
...@@ -53,6 +53,7 @@ class MacosGLLayer(val layer: HardwareLayer, setNeedsDisplayOnBoundsChange: Bool ...@@ -53,6 +53,7 @@ class MacosGLLayer(val layer: HardwareLayer, setNeedsDisplayOnBoundsChange: Bool
this.setNeedsDisplayOnBoundsChange(setNeedsDisplayOnBoundsChange) this.setNeedsDisplayOnBoundsChange(setNeedsDisplayOnBoundsChange)
this.removeAllAnimations() this.removeAllAnimations()
this.setAutoresizingMask(kCALayerWidthSizable or kCALayerHeightSizable ) this.setAutoresizingMask(kCALayerWidthSizable or kCALayerHeightSizable )
this.setAsynchronous(true)
container.layer = this container.layer = this
container.wantsLayer = true container.wantsLayer = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment