/hg/gfx-test: Ten new helper methods added into BitBltBufferedIm...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Jun 10 10:50:46 UTC 2014


changeset 263e258d06ee in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=263e258d06ee
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jun 10 12:51:29 2014 +0200

	Ten new helper methods added into BitBltBufferedImageOp.


diffstat:

 ChangeLog                                             |    5 +
 src/org/gfxtest/testsuites/BitBltBufferedImageOp.java |  170 ++++++++++++++++++
 2 files changed, 175 insertions(+), 0 deletions(-)

diffs (192 lines):

diff -r 9a62e5957854 -r 263e258d06ee ChangeLog
--- a/ChangeLog	Mon Jun 09 12:01:49 2014 +0200
+++ b/ChangeLog	Tue Jun 10 12:51:29 2014 +0200
@@ -1,3 +1,8 @@
+2014-06-10  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
+	Ten new helper methods added into BitBltBufferedImageOp.
+
 2014-06-09  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
diff -r 9a62e5957854 -r 263e258d06ee src/org/gfxtest/testsuites/BitBltBufferedImageOp.java
--- a/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java	Mon Jun 09 12:01:49 2014 +0200
+++ b/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java	Tue Jun 10 12:51:29 2014 +0200
@@ -2608,6 +2608,176 @@
     }
 
     /**
+     * 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 doBitBltBWDotsType4ByteABGR_Pre(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(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 doBitBltBWDotsTypeByteBinary(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(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 doBitBltBWDotsTypeByteIndexed(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_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 doBitBltBWDotsTypeByteGray(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_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 doBitBltBWDotsTypeIntBGR(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_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 doBitBltBWDotsTypeIntRGB(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, rasterOp);
+    }
+
+    /**
+     * 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 doBitBltBWDotsTypeIntARGB(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(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 doBitBltBWDotsTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(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 doBitBltBWDotsTypeUshort555RGB(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(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 doBitBltBWDotsTypeUshort565RGB(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithBWDotsImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, rasterOp);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case


More information about the distro-pkg-dev mailing list