mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8366446: Test java/awt/geom/ConcurrentDrawPolygonTest.java fails intermittently
Reviewed-by: jdv, aivanov, prr, rhalade
This commit is contained in:
parent
05f8f5232f
commit
73af0a188a
@ -1898,14 +1898,16 @@ public final class SunGraphics2D
|
||||
|
||||
protected void validateCompClip() {
|
||||
int origClipState = clipState;
|
||||
if (usrClip == null) {
|
||||
final Shape clip = usrClip;
|
||||
|
||||
if (clip == null) {
|
||||
clipState = CLIP_DEVICE;
|
||||
clipRegion = devClip;
|
||||
} else if (usrClip instanceof Rectangle2D clip) {
|
||||
} else if (clip instanceof Rectangle2D rect2d) {
|
||||
clipState = CLIP_RECTANGULAR;
|
||||
clipRegion = devClip.getIntersection(clip);
|
||||
clipRegion = devClip.getIntersection(rect2d);
|
||||
} else {
|
||||
PathIterator cpi = usrClip.getPathIterator(null);
|
||||
PathIterator cpi = clip.getPathIterator(null);
|
||||
int[] box = new int[4];
|
||||
ShapeSpanIterator sr = LoopPipe.getFillSSI(this);
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user