modules/graphics/src/test/java/test/com/sun/javafx/sg/prism/RenderRootTest.java
Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:
@@ -21,16 +21,22 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-package com.sun.javafx.sg.prism;
+package test.com.sun.javafx.sg.prism;
import com.sun.javafx.geom.DirtyRegionContainer;
import com.sun.javafx.geom.RectBounds;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.geom.transform.GeneralTransform3D;
+import com.sun.javafx.sg.prism.NGCircle;
+import com.sun.javafx.sg.prism.NGGroup;
+import com.sun.javafx.sg.prism.NGNode;
+import com.sun.javafx.sg.prism.NGNodeShim;
+import com.sun.javafx.sg.prism.NGRectangle;
+import com.sun.javafx.sg.prism.NodePath;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
@@ -80,11 +86,11 @@
final DirtyRegionContainer drc = new DirtyRegionContainer(1);
final RectBounds dirtyRegion = new RectBounds(dirtyX, dirtyY, dirtyX+dirtyWidth, dirtyY+dirtyHeight);
drc.addDirtyRegion(dirtyRegion);
final BaseTransform tx = BaseTransform.IDENTITY_TRANSFORM;
final GeneralTransform3D pvTx = new GeneralTransform3D();
- root.markCullRegions(drc, -1, tx, pvTx);
+ NGNodeShim.markCullRegions(root, drc, -1, tx, pvTx);
NodePath path = new NodePath();
root.getRenderRoot(path, dirtyRegion, 0, tx, pvTx);
return path;
}