/hg/gfx-test: Ten new tests added into BitBltBasicTests test suite.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Sep 4 02:49:47 PDT 2013
changeset 3939316ef6dd in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=3939316ef6dd
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Sep 04 11:53:33 2013 +0200
Ten new tests added into BitBltBasicTests test suite.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltBasicTests.java | 150 +++++++++++++++++++++++
2 files changed, 155 insertions(+), 0 deletions(-)
diffs (172 lines):
diff -r e28aa6bfbc2e -r 3939316ef6dd ChangeLog
--- a/ChangeLog Tue Sep 03 12:06:01 2013 +0200
+++ b/ChangeLog Wed Sep 04 11:53:33 2013 +0200
@@ -1,3 +1,8 @@
+2013-09-04 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltBasicTests.java:
+ Ten new tests added into BitBltBasicTests test suite.
+
2013-09-03 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java:
diff -r e28aa6bfbc2e -r 3939316ef6dd src/org/gfxtest/testsuites/BitBltBasicTests.java
--- a/src/org/gfxtest/testsuites/BitBltBasicTests.java Tue Sep 03 12:06:01 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltBasicTests.java Wed Sep 04 11:53:33 2013 +0200
@@ -5672,6 +5672,156 @@
}
/**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_INT_BGR.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeIntBGR(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_INT_BGR);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_INT_RGB.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeIntRGB(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_INT_RGB);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_INT_ARGB.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeIntARGB(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_INT_ARGB);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_INT_ARGB_PRE.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_USHORT_555_RGB.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_USHORT_565_RGB.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_USHORT_GRAY.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture2BufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture2Image(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture3BufferedImageType3ByteBGR(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture3Image(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_4BYTE_ABGR.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture3BufferedImageType4ByteABGR(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture3Image(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR);
+ }
+
+ /**
+ * Test basic BitBlt operation for texture RGB pattern #1 buffered image with type TYPE_4BYTE_ABGR_PRE.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltRGBTexture3BufferedImageType4ByteABGR_PRE(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithRGBTexture3Image(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list