Skip to content

Commit 1047521

Browse files
committed
8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java
Reviewed-by: phh Backport-of: 6c7029ffd48186353fc1d2a03915386b5f386ae2
1 parent 1f516f6 commit 1047521

File tree

1 file changed

+57
-10
lines changed

1 file changed

+57
-10
lines changed

test/jdk/sun/java2d/marlin/ClipShapeTest.java

+57-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -52,24 +52,71 @@
5252
import javax.imageio.ImageWriter;
5353
import javax.imageio.stream.ImageOutputStream;
5454

55-
/**
56-
* @test
55+
/*
56+
* @test id=PolySingle
5757
* @bug 8191814
58-
* @summary Verifies that Marlin rendering generates the same
59-
* images with and without clipping optimization with all possible
60-
* stroke (cap/join) and/or dashes or fill modes (EO rules)
61-
* for paths made of either 9 lines, 4 quads, 2 cubics (random)
62-
* Note: Use the argument -slow to run more intensive tests (too much time)
63-
*
58+
* @summary Runs the test with "-poly" option, single-precision
6459
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -poly
60+
*/
61+
62+
/*
63+
* @test id=PolyDoDashSingle
64+
* @bug 8191814
65+
* @summary Runs the test with "-poly -doDash" options, single-precision
6566
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -poly -doDash
67+
*/
68+
69+
/*
70+
* @test id=CubicSingle
71+
* @bug 8191814
72+
* @summary Runs the test with "-cubic" option, single-precision
6673
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -cubic
74+
*/
75+
76+
/*
77+
* @test id=CubicDoDashSingle
78+
* @bug 8191814
79+
* @summary Runs the test with "-cubic -doDash" options, single-precision
6780
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine ClipShapeTest -cubic -doDash
81+
*/
82+
83+
/*
84+
* @test id=Poly
85+
* @bug 8191814
86+
* @summary Runs the test with "-poly" option, double-precision
6887
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly
88+
*/
89+
90+
/*
91+
* @test id=PolyDoDash
92+
* @bug 8191814
93+
* @summary Runs the test with "-poly -doDash" options, double-precision
6994
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly -doDash
95+
*/
96+
97+
/*
98+
* @test id=Cubic
99+
* @bug 8191814
100+
* @summary Runs the test with "-cubic" option, double-precision
70101
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic
102+
*/
103+
104+
/*
105+
* @test id=CubicDoDash
106+
* @bug 8191814
107+
* @summary Runs the test with "-cubic -doDash" options, double-precision
71108
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic -doDash
72-
*/
109+
*/
110+
111+
/**
112+
* Verifies that Marlin rendering generates the same images with and without
113+
* clipping optimization with all possible stroke (cap/join) and/or dashes or
114+
* fill modes (EO rules) for paths made of either 9 lines, 4 quads, 2 cubics
115+
* (random).
116+
* <p>
117+
* Note: Use the argument {@code -slow} to run more intensive tests (too much
118+
* time).
119+
*/
73120
public final class ClipShapeTest {
74121

75122
// test options:

0 commit comments

Comments
 (0)