changeset 667:2a2ff4b7bf67 draft

Yet another ten tests added into BitBltBufferedImageOp.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Mon, 05 Jan 2015 09:35:13 +0100
parents 4db1e960a09d
children 8e79c9f26d53
files ChangeLog src/org/gfxtest/testsuites/BitBltBufferedImageOp.java
diffstat 2 files changed, 165 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Dec 18 13:12:14 2014 +0100
+++ b/ChangeLog	Mon Jan 05 09:35:13 2015 +0100
@@ -1,3 +1,8 @@
+2015-01-05  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
+	Yet another ten tests added into BitBltBufferedImageOp.
+
 2014-12-18  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
--- a/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java	Thu Dec 18 13:12:14 2014 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java	Mon Jan 05 09:35:13 2015 +0100
@@ -5891,6 +5891,166 @@
     }
 
     /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalYellowGradientTypeIntARGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalYellowGradientImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalYellowGradientTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalYellowGradientImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_USHORT_555_RGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalYellowGradientTypeUshort555RGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalYellowGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_USHORT_565_RGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalYellowGradientTypeUshort565RGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalYellowGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_USHORT_GRAY}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalYellowGradientTypeUshortGray(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalYellowGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltRGBTexture1Type3ByteBGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithRGBTexture1Image(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_4BYTE_ABGR}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltRGBTexture1Type4ByteABGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithRGBTexture1Image(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_4BYTE_ABGR_PRE}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltRGBTexture1Type4ByteABGR_Pre(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithRGBTexture1Image(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_BINARY}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltRGBTexture1TypeByteBinary(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithRGBTexture1Image(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_INDEXED}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltRGBTexture1TypeByteIndexed(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithRGBTexture1Image(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, rasterOp);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case