modules/graphics/src/test/java/test/com/sun/javafx/sg/prism/TestGraphics.java

Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.sg.prism;
  27 
  28 import java.nio.Buffer;
  29 import com.sun.glass.ui.Screen;
  30 import com.sun.javafx.font.FontStrike;
  31 import com.sun.javafx.geom.RectBounds;
  32 import com.sun.javafx.geom.Shape;
  33 import com.sun.javafx.geom.transform.BaseTransform;
  34 import com.sun.javafx.scene.text.GlyphList;


  35 import com.sun.prism.BasicStroke;
  36 import com.sun.prism.Graphics;
  37 import com.sun.prism.Image;
  38 import com.sun.prism.MediaFrame;
  39 import com.sun.prism.Mesh;
  40 import com.sun.prism.MeshView;
  41 import com.sun.prism.PhongMaterial;
  42 import com.sun.prism.PixelFormat;
  43 import com.sun.prism.Presentable;
  44 import com.sun.prism.PresentableState;
  45 import com.sun.prism.RTTexture;
  46 import com.sun.prism.RenderTarget;
  47 import com.sun.prism.ResourceFactory;
  48 import com.sun.prism.ResourceFactoryListener;
  49 import com.sun.prism.Texture;
  50 import com.sun.prism.Texture.WrapMode;
  51 import com.sun.prism.impl.BaseContext;
  52 import com.sun.prism.impl.BaseGraphics;
  53 import com.sun.prism.impl.TextureResourcePool;
  54 import com.sun.prism.impl.VertexBuffer;




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package test.com.sun.javafx.sg.prism;
  27 
  28 import java.nio.Buffer;
  29 import com.sun.glass.ui.Screen;
  30 import com.sun.javafx.font.FontStrike;
  31 import com.sun.javafx.geom.RectBounds;
  32 import com.sun.javafx.geom.Shape;
  33 import com.sun.javafx.geom.transform.BaseTransform;
  34 import com.sun.javafx.scene.text.GlyphList;
  35 import com.sun.javafx.sg.prism.NGCamera;
  36 import com.sun.javafx.sg.prism.NGLightBase;
  37 import com.sun.prism.BasicStroke;
  38 import com.sun.prism.Graphics;
  39 import com.sun.prism.Image;
  40 import com.sun.prism.MediaFrame;
  41 import com.sun.prism.Mesh;
  42 import com.sun.prism.MeshView;
  43 import com.sun.prism.PhongMaterial;
  44 import com.sun.prism.PixelFormat;
  45 import com.sun.prism.Presentable;
  46 import com.sun.prism.PresentableState;
  47 import com.sun.prism.RTTexture;
  48 import com.sun.prism.RenderTarget;
  49 import com.sun.prism.ResourceFactory;
  50 import com.sun.prism.ResourceFactoryListener;
  51 import com.sun.prism.Texture;
  52 import com.sun.prism.Texture.WrapMode;
  53 import com.sun.prism.impl.BaseContext;
  54 import com.sun.prism.impl.BaseGraphics;
  55 import com.sun.prism.impl.TextureResourcePool;
  56 import com.sun.prism.impl.VertexBuffer;