8318603: Parallelize sun/java2d/marlin/ClipShapeTest.java

Reviewed-by: aivanov, shade
This commit is contained in:
Sergey Bylokhov 2024-02-10 01:48:48 +00:00
parent e33d8a2198
commit 6c7029ffd4

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -52,20 +52,43 @@ import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWriter;
import javax.imageio.stream.ImageOutputStream;
/**
* @test
/*
* @test id=Poly
* @bug 8191814
* @summary Verifies that Marlin rendering generates the same
* images with and without clipping optimization with all possible
* stroke (cap/join) and/or dashes or fill modes (EO rules)
* for paths made of either 9 lines, 4 quads, 2 cubics (random)
* Note: Use the argument -slow to run more intensive tests (too much time)
*
* @summary Runs the test with "-poly" option
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly
*/
/*
* @test id=PolyDoDash
* @bug 8191814
* @summary Runs the test with "-poly -doDash" options
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -poly -doDash
*/
/*
* @test id=Cubic
* @bug 8191814
* @summary Runs the test with "-cubic" option
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic
*/
/*
* @test id=CubicDoDash
* @bug 8191814
* @summary Runs the test with "-cubic -doDash" options
* @run main/othervm/timeout=300 -Dsun.java2d.renderer=sun.java2d.marlin.DMarlinRenderingEngine ClipShapeTest -cubic -doDash
*/
*/
/**
* Verifies that Marlin rendering generates the same images with and without
* clipping optimization with all possible stroke (cap/join) and/or dashes or
* fill modes (EO rules) for paths made of either 9 lines, 4 quads, 2 cubics
* (random).
* <p>
* Note: Use the argument {@code -slow} to run more intensive tests (too much
* time).
*/
public final class ClipShapeTest {
// test options: