Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit 2b247d0

Browse files
committed
8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java
Backport-of: 6c7029ffd48186353fc1d2a03915386b5f386ae2
1 parent 83ff84a commit 2b247d0

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

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

+33-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021, 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,20 +52,43 @@
5252
import javax.imageio.ImageWriter;
5353
import javax.imageio.stream.ImageOutputStream;
5454

55-
/**
56-
* @test
55+
/*
56+
* @test id=Poly
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
6459
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly
60+
*/
61+
62+
/*
63+
* @test id=PolyDoDash
64+
* @bug 8191814
65+
* @summary Runs the test with "-poly -doDash" options
6566
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly -doDash
67+
*/
68+
69+
/*
70+
* @test id=Cubic
71+
* @bug 8191814
72+
* @summary Runs the test with "-cubic" option
6673
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic
74+
*/
75+
76+
/*
77+
* @test id=CubicDoDash
78+
* @bug 8191814
79+
* @summary Runs the test with "-cubic -doDash" options
6780
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic -doDash
68-
*/
81+
*/
82+
83+
/**
84+
* Verifies that Marlin rendering generates the same images with and without
85+
* clipping optimization with all possible stroke (cap/join) and/or dashes or
86+
* fill modes (EO rules) for paths made of either 9 lines, 4 quads, 2 cubics
87+
* (random).
88+
* <p>
89+
* Note: Use the argument {@code -slow} to run more intensive tests (too much
90+
* time).
91+
*/
6992
public final class ClipShapeTest {
7093

7194
// test options:

0 commit comments

Comments
 (0)