diff options
author | Sven Gothel <[email protected]> | 2010-11-16 10:36:28 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-16 10:36:28 +0100 |
commit | db4d7d198cc826bba871fea39461c3c8a2a3b1c6 (patch) | |
tree | 723c5d4958df50a2ca7443171873e6f854c745a5 /make | |
parent | b3420aeb07f9bef1e4fe5f436524d0b3d66cfaa2 (diff) |
NEWT Lifecycle remodel: Window destroy() !
NEWT's removed:
Window: destoy(boolean unrecoverable)
Display/Screen: get/set DestroyWhenUnused(boolean)
We behave as follows:
- Window.destroy() always decr Screen's reference counter,
which issues destruction when reached zero.
Then Screen does the same for Display ..
- Window.destroy() keeps alive all references,
hence it can be always recreated via setVisible(true).
- Window.destroy() ensures Display's EDT is stopped
if display is destroyed.
- Window.invalidate() actually removes all Object reference,
hence it cannot be recreated or used after it.
This method exist to support a way to cleanup memory, GC.
All test passed on Linux/X11 and Windows
Diffstat (limited to 'make')
-rw-r--r-- | make/scripts/tests.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index 93deeab83..d61435d67 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -36,6 +36,7 @@ function jrun() { #D_ARGS="-Dnewt.debug.Screen -Dnewt.debug.EDT -Djogamp.debug.Lock" #D_ARGS="-Dnewt.debug.EDT" #D_ARGS="-Djogl.debug=all -Dnativewindow.debug=all -Dnewt.debug=all" + D_ARGS="-Dnewt.debug=all" X_ARGS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false" java $awtarg $X_ARGS $D_ARGS $* 2>&1 | tee -a java-run.log } @@ -59,6 +60,7 @@ function testawt() { #testawt com.jogamp.test.junit.jogl.acore.TestGLProfile01NEWT $* #testawt com.jogamp.test.junit.jogl.demos.gl2.gears.newt.TestGearsNEWT #testawt com.jogamp.test.junit.newt.TestDisplayLifecycle01NEWT +#testawt com.jogamp.test.junit.newt.TestDisplayLifecycle02NEWT testawt com.jogamp.test.junit.newt.parenting.TestParenting01NEWT #testawt com.jogamp.test.junit.newt.parenting.TestParenting02NEWT #testawt com.jogamp.test.junit.newt.TestScreenMode00NEWT |