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

Print this page




 142         return false;
 143     }
 144 
 145     public void setup3DRendering() {
 146     }
 147 
 148     public void blit(RTTexture srcTex, RTTexture dstTex, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1) {
 149     }
 150 
 151     private static class TestContext extends BaseContext {
 152 
 153         public TestContext() {
 154             super(null, new TestResourceFactory(), null);
 155         }
 156 
 157         @Override
 158         protected void setRenderTarget(RenderTarget target, NGCamera camera, boolean depthTest, boolean state3D) {
 159         }
 160 
 161         @Override




 162         public void validatePaintOp(BaseGraphics g, BaseTransform xform, Texture maskTex, float bx, float by, float bw, float bh) {
 163         }
 164 
 165         @Override
 166         public void validateTextureOp(BaseGraphics g, BaseTransform xform, Texture src, PixelFormat format) {
 167         }
 168 
 169         @Override
 170         public RTTexture getLCDBuffer() {
 171             return null;
 172         }
 173     }
 174 
 175     private static class TestResourceFactory implements ResourceFactory {
 176         @Override public boolean isDeviceReady() { return true; }
 177 
 178         @Override public TextureResourcePool getTextureResourcePool() { return null; }
 179         @Override public Texture createTexture(Image image, Texture.Usage usageHint, WrapMode wrapMode) { return null; }
 180         @Override public Texture createTexture(Image image, Texture.Usage usageHint, Texture.WrapMode wrapMode, boolean useMipmap) { return null; }
 181         @Override public Texture createTexture(PixelFormat formatHint, Texture.Usage usageHint, WrapMode wrapMode, int w, int h) { return null; }




 142         return false;
 143     }
 144 
 145     public void setup3DRendering() {
 146     }
 147 
 148     public void blit(RTTexture srcTex, RTTexture dstTex, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1) {
 149     }
 150 
 151     private static class TestContext extends BaseContext {
 152 
 153         public TestContext() {
 154             super(null, new TestResourceFactory(), null);
 155         }
 156 
 157         @Override
 158         protected void setRenderTarget(RenderTarget target, NGCamera camera, boolean depthTest, boolean state3D) {
 159         }
 160 
 161         @Override
 162         public void validateClearOp(BaseGraphics g) {
 163         }
 164 
 165         @Override
 166         public void validatePaintOp(BaseGraphics g, BaseTransform xform, Texture maskTex, float bx, float by, float bw, float bh) {
 167         }
 168 
 169         @Override
 170         public void validateTextureOp(BaseGraphics g, BaseTransform xform, Texture src, PixelFormat format) {
 171         }
 172 
 173         @Override
 174         public RTTexture getLCDBuffer() {
 175             return null;
 176         }
 177     }
 178 
 179     private static class TestResourceFactory implements ResourceFactory {
 180         @Override public boolean isDeviceReady() { return true; }
 181 
 182         @Override public TextureResourcePool getTextureResourcePool() { return null; }
 183         @Override public Texture createTexture(Image image, Texture.Usage usageHint, WrapMode wrapMode) { return null; }
 184         @Override public Texture createTexture(Image image, Texture.Usage usageHint, Texture.WrapMode wrapMode, boolean useMipmap) { return null; }
 185         @Override public Texture createTexture(PixelFormat formatHint, Texture.Usage usageHint, WrapMode wrapMode, int w, int h) { return null; }