modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumToolkit.java

Print this page

        

*** 314,324 **** * Glass Application instance is now valid - create the ResourceFactory * on the render thread */ renderer.createResourceFactory(); ! pulseRunnable = () -> QuantumToolkit.this.pulse(); timerRunnable = () -> { try { QuantumToolkit.this.postPulse(); } catch (Throwable th) { th.printStackTrace(System.err); --- 314,324 ---- * Glass Application instance is now valid - create the ResourceFactory * on the render thread */ renderer.createResourceFactory(); ! pulseRunnable = () -> QuantumToolkit.this.pulseFromQueue(); timerRunnable = () -> { try { QuantumToolkit.this.postPulse(); } catch (Throwable th) { th.printStackTrace(System.err);
*** 484,493 **** --- 484,501 ---- if (debug) { System.err.println("QT.endPulse: " + System.nanoTime()); } } + void pulseFromQueue() { + try { + pulse(); + } finally { + endPulseRunning(); + } + } + protected void pulse() { pulse(true); } void pulse(boolean collect) {
*** 509,519 **** } firePulse(); if (collect) collector.renderAll(); } finally { inPulse--; - endPulseRunning(); if (PULSE_LOGGING_ENABLED) { PulseLogger.pulseEnd(); } } } --- 517,526 ----