Unverified Commit 9a95f214 authored by Roman Sedaikin's avatar Roman Sedaikin Committed by GitHub

Revert "Fixed case when user get low refresh rate with VRR capable display. (#475)" (#479)

This reverts commit 70f772af.
parent 8e68ca08
......@@ -65,8 +65,6 @@ actual open class SkiaLayer internal constructor(
val canvas: java.awt.Canvas
get() = backedLayer
private var vrrDisplayLocker: JPanel? = null
init {
isOpaque = false
layout = null
......@@ -249,14 +247,6 @@ actual open class SkiaLayer internal constructor(
renderApi = fallbackRenderApiQueue.removeAt(0)
redrawer?.dispose()
redrawer = renderFactory.createRedrawer(this, renderApi, properties)
vrrDisplayLocker?.let { remove(it) }
if (hostOs == OS.Windows && (renderApi == GraphicsApi.DIRECT3D || renderApi == GraphicsApi.OPENGL)) {
vrrDisplayLocker = JPanel().apply {
background = Color(0, 0, 0, 0)
setBounds(0, 0, 1, 1)
}
add(vrrDisplayLocker, Integer.valueOf(0))
}
redrawer?.syncSize()
} catch (e: RenderException) {
println(e.message)
......@@ -317,7 +307,6 @@ actual open class SkiaLayer internal constructor(
}
super.setBounds(x, y, roundedWidth, roundedHeight)
backedLayer.setSize(roundedWidth, roundedHeight)
vrrDisplayLocker?.setBounds(0, 0, 1, 1)
redrawer?.syncSize()
}
......
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