/hg/gfx-test: Added new annotations for gfx. tests: BitBltOperat...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Sep 7 01:17:11 PDT 2012
changeset bea796a9cf11 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=bea796a9cf11
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Sep 07 10:19:46 2012 +0200
Added new annotations for gfx. tests: BitBltOperation, RasterOperation,
OtherOperation.
diffstat:
ChangeLog | 16 +
Makefile | 6 +
src/org/gfxtest/framework/annotations/BitBltOperation.java | 60 +++++
src/org/gfxtest/framework/annotations/BitBltOperations.java | 76 +++++++
src/org/gfxtest/framework/annotations/OtherOperation.java | 60 +++++
src/org/gfxtest/framework/annotations/OtherOperations.java | 66 ++++++
src/org/gfxtest/framework/annotations/RasterOperation.java | 60 +++++
src/org/gfxtest/framework/annotations/RasterOperations.java | 123 ++++++++++++
src/org/gfxtest/testsuites/BitBltBasicTests.java | 2 +-
src/org/gfxtest/testsuites/BitBltMirrorImage.java | 2 +-
src/org/gfxtest/testsuites/BitBltRotateImage.java | 2 +-
src/org/gfxtest/testsuites/BitBltScaleImage.java | 2 +-
12 files changed, 471 insertions(+), 4 deletions(-)
diffs (truncated from 556 to 500 lines):
diff -r 15eba2d75bf7 -r bea796a9cf11 ChangeLog
--- a/ChangeLog Thu Sep 06 09:33:59 2012 +0200
+++ b/ChangeLog Fri Sep 07 10:19:46 2012 +0200
@@ -1,3 +1,19 @@
+2012-09-07 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/framework/annotations/BitBltOperation.java:
+ * src/org/gfxtest/framework/annotations/BitBltOperations.java:
+ * src/org/gfxtest/framework/annotations/OtherOperation.java:
+ * src/org/gfxtest/framework/annotations/OtherOperations.java:
+ * src/org/gfxtest/framework/annotations/RasterOperation.java:
+ * src/org/gfxtest/framework/annotations/RasterOperations.java:
+ Added new annotations for gfx. tests.
+ * src/org/gfxtest/testsuites/BitBltBasicTests.java:
+ * src/org/gfxtest/testsuites/BitBltMirrorImage.java:
+ * src/org/gfxtest/testsuites/BitBltRotateImage.java:
+ * src/org/gfxtest/testsuites/BitBltScaleImage.java:
+ Fixed annotations for these tests.
+ * Makefile: Added new classes to compile.
+
2012-09-06 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/framework/annotations/GraphicsPrimitives.java:
diff -r 15eba2d75bf7 -r bea796a9cf11 Makefile
--- a/Makefile Thu Sep 06 09:33:59 2012 +0200
+++ b/Makefile Fri Sep 07 10:19:46 2012 +0200
@@ -80,6 +80,12 @@
$(CLASSES)/$(FRAMEWORK_DIR)/annotations/PathVariants.class \
$(CLASSES)/$(FRAMEWORK_DIR)/annotations/ShapeVariant.class \
$(CLASSES)/$(FRAMEWORK_DIR)/annotations/ShapeVariants.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/annotations/BitBltOperation.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/annotations/BitBltOperations.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/annotations/OtherOperation.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/annotations/OtherOperations.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/annotations/RasterOperation.class \
+ $(CLASSES)/$(FRAMEWORK_DIR)/annotations/RasterOperations.class \
$(CLASSES)/$(FRAMEWORK_DIR)/annotations/Zoom.class \
$(CLASSES)/$(FRAMEWORK_DIR)/ColorPalette.class \
$(CLASSES)/$(FRAMEWORK_DIR)/GrayscalePalette.class \
diff -r 15eba2d75bf7 -r bea796a9cf11 src/org/gfxtest/framework/annotations/BitBltOperation.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/annotations/BitBltOperation.java Fri Sep 07 10:19:46 2012 +0200
@@ -0,0 +1,60 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.framework.annotations;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+
+
+/**
+ * Declaration of interface used to specify BitBlt operation for selected test
+ * suite.
+ *
+ * @see BitBltOperations
+ *
+ * @author Pavel Tisnovsky
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface BitBltOperation
+{
+ BitBltOperations values();
+}
diff -r 15eba2d75bf7 -r bea796a9cf11 src/org/gfxtest/framework/annotations/BitBltOperations.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/annotations/BitBltOperations.java Fri Sep 07 10:19:46 2012 +0200
@@ -0,0 +1,76 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.framework.annotations;
+
+
+
+/**
+ * BitBlt operations applied as part of some rendering tests.
+ *
+ * @author Pavel Tisnovsky
+ */
+public enum BitBltOperations
+{
+ /**
+ * Normal BitBlt.
+ */
+ BITBLT,
+
+ /**
+ * Crop operation.
+ */
+ CROP,
+
+ /**
+ * Mirror.
+ */
+ MIRROR,
+
+ /**
+ * Rotation.
+ */
+ ROTATE,
+
+ /**
+ * Scaling.
+ */
+ SCALE
+}
diff -r 15eba2d75bf7 -r bea796a9cf11 src/org/gfxtest/framework/annotations/OtherOperation.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/annotations/OtherOperation.java Fri Sep 07 10:19:46 2012 +0200
@@ -0,0 +1,60 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.framework.annotations;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+
+
+/**
+ * Declaration of interface used to specify other operation for selected test
+ * suite.
+ *
+ * @see OtherOperations
+ *
+ * @author Pavel Tisnovsky
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface OtherOperation
+{
+ OtherOperations values();
+}
diff -r 15eba2d75bf7 -r bea796a9cf11 src/org/gfxtest/framework/annotations/OtherOperations.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/annotations/OtherOperations.java Fri Sep 07 10:19:46 2012 +0200
@@ -0,0 +1,66 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.framework.annotations;
+
+
+
+/**
+ * Other operations applied as part of some rendering tests.
+ *
+ * @author Pavel Tisnovsky
+ */
+public enum OtherOperations
+{
+ /**
+ * None operations are applied.
+ */
+ NONE,
+
+ /**
+ * Alpha composition.
+ */
+ ALPHA_COMPOSITE,
+
+ /**
+ * Clip operation.
+ */
+ CLIP_REGION,
+}
diff -r 15eba2d75bf7 -r bea796a9cf11 src/org/gfxtest/framework/annotations/RasterOperation.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/annotations/RasterOperation.java Fri Sep 07 10:19:46 2012 +0200
@@ -0,0 +1,60 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.framework.annotations;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+
+
+/**
+ * Declaration of interface used to specify raster operation for selected test
+ * suite.
+ *
+ * @see RasterOperations
+ *
+ * @author Pavel Tisnovsky
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface RasterOperation
+{
+ RasterOperations values();
+}
diff -r 15eba2d75bf7 -r bea796a9cf11 src/org/gfxtest/framework/annotations/RasterOperations.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/framework/annotations/RasterOperations.java Fri Sep 07 10:19:46 2012 +0200
@@ -0,0 +1,123 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package org.gfxtest.framework.annotations;
+
+
+
+/**
+ * Raster operations applied as part of some rendering tests.
+ *
+ * @author Pavel Tisnovsky
+ */
+public enum RasterOperations
+{
+ /**
+ * Both the color and the alpha of the destination are cleared (Porter-Duff
+ * Clear rule).
+ */
+ CLEAR,
+
+ /**
+ * The destination is left untouched (Porter-Duff Destination rule).
+ * */
+ DST,
+
+ /**
+ * The part of the destination lying inside of the source is composited over
+ * the source and replaces the destination (Porter-Duff Destination Atop
+ * Source rule).
+ */
+ DST_ATOP,
+
+ /**
+ * The part of the destination lying inside of the source replaces the
+ * destination (Porter-Duff Destination In Source rule).
+ */
+ DST_IN,
+
+ /**
+ * The part of the destination lying outside of the source replaces the
+ * destination (Porter-Duff Destination Held Out By Source rule).
+ */
+ DST_OUT,
+
+ /**
+ * The destination is composited over the source and the result replaces the
+ * destination (Porter-Duff Destination Over Source rule).
+ */
+ DST_OVER,
+
+ /**
+ * The source is copied to the destination (Porter-Duff Source rule).
+ */
+ SRC,
+
+ /**
+ * The part of the source lying inside of the destination is composited onto
+ * the destination (Porter-Duff Source Atop Destination rule).
+ */
+ SRC_ATOP,
+
+ /**
+ * The part of the source lying inside of the destination replaces the
+ * destination (Porter-Duff Source In Destination rule).
+ */
+ SRC_IN,
+
+ /**
+ * The part of the source lying outside of the destination replaces the
+ * destination (Porter-Duff Source Held Out By Destination rule).
+ */
+ SRC_OUT,
+
+ /**
+ * The source is composited over the destination (Porter-Duff Source Over
+ * Destination rule).
+ */
+ SRC_OVER,
More information about the distro-pkg-dev
mailing list