diff options
author | Harvey Harrison <[email protected]> | 2012-02-20 14:32:45 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-02-20 14:32:45 -0800 |
commit | bdf8d52ccead01aa421c550fcf93f168c5e0defb (patch) | |
tree | 653dc783489b787bd2c7566f4f9377ae3cca8cab /src/classes/share | |
parent | f866ade7366d8710d17e9d75a75315043ed095da (diff) |
j3dcore: remove the DVR backdoor in View
Dynamic Video Resize is effectively unused internally, kill it.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/share')
-rw-r--r-- | src/classes/share/javax/media/j3d/View.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/classes/share/javax/media/j3d/View.java b/src/classes/share/javax/media/j3d/View.java index d42016e..b7841dc 100644 --- a/src/classes/share/javax/media/j3d/View.java +++ b/src/classes/share/javax/media/j3d/View.java @@ -41,8 +41,6 @@ import java.util.Vector; import javax.vecmath.Point3d; import javax.vecmath.Point3f; -import com.sun.j3d.utils.universe.Viewer; - /** * The View object contains all parameters needed in rendering a * three dimensional scene from one viewpoint. A view contains a list @@ -741,12 +739,6 @@ private Vector<Canvas3D> canvases = new Vector<Canvas3D>(3); long startTime = 0; long stopTime = 0; - // Support dynamic video resize -- DVR. - Viewer viewer = null; // Cached the associate viewer of this view. - boolean firstTime = true; -// float dvrFactor = 1.0f; -// boolean dvrResizeCompensation = true; - // User adjustable minimum frame cycle time long minFrameCycleTime; @@ -3086,45 +3078,6 @@ private ArrayList<ArrayList<Canvas3D>> canvasList = new ArrayList<ArrayList<Canv */ final void updateViewCache() { - - // TODO KCR : remove obsolete DVR code (but make sure we don't end - // up with a leak in the Viewer Map object). - - // DVR support - // This is a back door in j3d to provide DVR support. - // A better place to put this code segment is in - // ViewCache.snapshot(). Since it consists of some - // back door code, I've decided to put it here to isolate - // it from the rest of view snapshot code. - if(firstTime) { - // System.err.println("View : First Time is " + firstTime); - // viewer = Viewer.getViewer(this); - // Since we've the handler to the viewer, we can remove the entry - // now to avoid confusion and prevent memory leak problem. - viewer = Viewer.removeViewerMapEntry(this); - firstTime = false; - } - -// if(viewer != null) { -// if(viewer.isDvrEnabled()) { -// dvrFactor = viewer.getDvrFactor(); -// dvrResizeCompensation = -// viewer.getDvrResizeCompensationEnable(); -// /* -// System.err.println("View : dvrFactor is " + dvrFactor); -// System.err.println("View : dvrResizeCompensation is " + -// dvrResizeCompensation); -// */ -// } -// else { -// // Reset back to default. -// dvrFactor = 1.0f; -// dvrResizeCompensation = true; -// -// } -// } - // End of back door -- DVR. - synchronized(this) { viewCache.snapshot(); viewCache.computeDerivedData(); |