From dd8f6f0c884161eb1099ff1ab8af20383984771d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 8 Dec 2019 07:39:24 +0100 Subject: Bug 1415: ExclusiveContextBase00+10: Utilize one Animator per Window for clean ExclusiveContextThread No, this does not resolve the issue - but is the proper test case. ExclusiveContextBase10 also gets the preVis test. --- make/scripts/tests.sh | 7 +- .../jogl/acore/ect/ExclusiveContextBase00.java | 295 +++++++++++---------- .../jogl/acore/ect/ExclusiveContextBase10.java | 138 +++++++--- 3 files changed, 253 insertions(+), 187 deletions(-) diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index 592e2af91..88efc4560 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -546,7 +546,7 @@ function testawtswt() { #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsAWT $* #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsSwingAWT $* #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsSwingAWT2 $* -testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsNewtAWT $* +#testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsNewtAWT $* #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingNIOImageSwingAWT $* # @@ -964,7 +964,10 @@ testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsNewtAWT $* # 2.4.0 Regressions # # OSX -#testnoawt com.jogamp.opengl.test.junit.jogl.acore.ect.TestExclusiveContext01VSyncAnimNEWT $* +#testawt com.jogamp.opengl.test.junit.jogl.acore.ect.TestExclusiveContext01VSyncAnimAWT $* +#testawt com.jogamp.opengl.test.junit.jogl.acore.ect.TestExclusiveContext02FPSAnimAWT $* +testnoawt com.jogamp.opengl.test.junit.jogl.acore.ect.TestExclusiveContext01VSyncAnimNEWT $* +#testnoawt com.jogamp.opengl.test.junit.jogl.acore.ect.TestExclusiveContext02FPSAnimNEWT $* #testnoawt com.jogamp.opengl.test.junit.newt.TestDisplayLifecycle02NEWT $* #testawt com.jogamp.opengl.test.junit.newt.event.TestParentingFocus02SwingAWTRobot $* #testnoawt com.jogamp.opengl.test.junit.newt.parenting.TestParenting01NEWT $* diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java index fca967ea4..817f5988e 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java @@ -36,7 +36,7 @@ import com.jogamp.opengl.test.junit.util.UITestCase; import com.jogamp.opengl.util.AnimatorBase; import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2; - +import com.jogamp.common.os.Platform; import com.jogamp.nativewindow.Capabilities; import com.jogamp.nativewindow.util.InsetsImmutable; @@ -114,90 +114,92 @@ public abstract class ExclusiveContextBase00 extends UITestCase { return; } final Thread awtRenderThread = getAWTRenderThread(); - final AnimatorBase animator = createAnimator(); - if( !useAWTRenderThread ) { - animator.setModeBits(false, AnimatorBase.MODE_EXPECT_AWT_RENDERING_THREAD); - } + final AnimatorBase[] animators = new AnimatorBase[drawableCount]; final GLAutoDrawable[] drawables = new GLAutoDrawable[drawableCount]; for(int i=0; i