/hg/gfx-test: Another update of BitBltUsingBgColor.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Feb 2 09:30:21 UTC 2015
changeset 040672d9ed90 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=040672d9ed90
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Feb 02 10:32:15 2015 +0100
Another update of BitBltUsingBgColor.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 136 +++++++++++++++++++++
2 files changed, 141 insertions(+), 0 deletions(-)
diffs (158 lines):
diff -r 497e87716479 -r 040672d9ed90 ChangeLog
--- a/ChangeLog Wed Jan 21 11:45:37 2015 +0100
+++ b/ChangeLog Mon Feb 02 10:32:15 2015 +0100
@@ -1,3 +1,8 @@
+2015-02-02 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Another update.
+
2015-01-21 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
diff -r 497e87716479 -r 040672d9ed90 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Wed Jan 21 11:45:37 2015 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Mon Feb 02 10:32:15 2015 +0100
@@ -2547,6 +2547,142 @@
}
/**
+ * test basic bitblt operation for diagonal color stripes buffered image with type {@link bufferedimage#type_int_bgr}.
+ *
+ * @param image
+ * image to be used as a destination for bitblt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundcolor
+ * background color
+ * @return test result status - passed, failed or error
+ */
+ private testresult dobitbltdiagonalcolorstripesbufferedimagetypeintbgr(testimage image, graphics2d graphics2d,
+ color backgroundcolor)
+ {
+ return commonbitmapoperations.dobitblttestwithdiagonalcolorstripesimage(image, graphics2d, bufferedimage.type_int_bgr, backgroundcolor);
+ }
+
+ /**
+ * test basic bitblt operation for diagonal color stripes buffered image with type {@link bufferedimage#type_int_rgb}.
+ *
+ * @param image
+ * image to be used as a destination for bitblt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundcolor
+ * background color
+ * @return test result status - passed, failed or error
+ */
+ private testresult dobitbltdiagonalcolorstripesbufferedimagetypeintrgb(testimage image, graphics2d graphics2d,
+ color backgroundcolor)
+ {
+ return commonbitmapoperations.dobitblttestwithdiagonalcolorstripesimage(image, graphics2d, bufferedimage.type_int_rgb, backgroundcolor);
+ }
+
+ /**
+ * test basic bitblt operation for diagonal color stripes buffered image with type {@link bufferedimage#type_byte_binary}.
+ *
+ * @param image
+ * image to be used as a destination for bitblt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundcolor
+ * background color
+ * @return test result status - passed, failed or error
+ */
+ private testresult dobitbltdiagonalcolorstripesbufferedimagetypebytebinary(testimage image, graphics2d graphics2d,
+ color backgroundcolor)
+ {
+ return commonbitmapoperations.dobitblttestwithdiagonalcolorstripesimage(image, graphics2d, bufferedimage.type_byte_binary, backgroundcolor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}.
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalColorStripesBufferedImageTypeByteGray(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_BYTE_INDEXED}.
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalColorStripesBufferedImageTypeByteIndexed(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_USHORT_555_RGB}.
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalColorStripesBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_USHORT_565_RGB}.
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalColorStripesBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal color stripes buffered image with type {@link BufferedImage#TYPE_USHORT_GRAY}.
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalColorStripesBufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, backgroundColor);
+ }
+
+ /**
* Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR_Pre.
* Background color is set to Color.black.
*
More information about the distro-pkg-dev
mailing list