Commit 72ad063f authored by Nikolay Igotti's avatar Nikolay Igotti

Make sure library loaded on class init

parent 3b514424
......@@ -15,12 +15,11 @@ internal class MetalRedrawer(
private val layer: SkiaLayer,
properties: SkiaLayerProperties
) : Redrawer {
init {
// We use native code inside concurrent code, so make sure native library is loaded
// before init.
Library.load()
companion object {
init {
Library.load()
}
}
private var isDisposed = false
private var disposeLock = Any()
private val device = layer.backedLayer.useDrawingSurfacePlatformInfo {
......
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