From d570fa74d4fd22459aa1579749a7705949a2a748 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 18 Mar 2012 16:33:07 +0100 Subject: Reduce Thread.dumpStack() in debug mode where no negative behavior appears or a stack trace may be helpful. --- src/newt/classes/jogamp/newt/WindowImpl.java | 1 - src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java | 1 - 2 files changed, 2 deletions(-) (limited to 'src/newt') diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index c73f72cfd..6a0449e30 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -783,7 +783,6 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer public void setVisible(boolean visible) { if(DEBUG_IMPLEMENTATION) { System.err.println("Window setVisible: START ("+getThreadName()+") "+getX()+"/"+getY()+" "+getWidth()+"x"+getHeight()+", fs "+fullscreen+", windowHandle "+toHexString(windowHandle)+", visible: "+this.visible+" -> "+visible+", parentWindowHandle "+toHexString(parentWindowHandle)+", parentWindow "+(null!=parentWindow)); - Thread.dumpStack(); } runOnEDTIfAvail(true, new VisibleAction(visible)); } diff --git a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java index 26aa1a806..e747b9ea7 100644 --- a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java +++ b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java @@ -302,7 +302,6 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 { protected void createNativeImpl() { Log.d(MD.TAG, "createNativeImpl 0 - surfaceHandle 0x"+Long.toHexString(surfaceHandle)+ ", format "+format+", "+getX()+"/"+getY()+" "+getWidth()+"x"+getHeight()+" - "+Thread.currentThread().getName()); - Thread.dumpStack(); if(0!=getParentWindowHandle()) { throw new NativeWindowException("Window parenting not supported (yet)"); } -- cgit v1.2.3