mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-18 01:17:57 +00:00
8042098: Test sun/java2d/AcceleratedXORModeTest.java fails on Windows
Reviewed-by: jgodinez
This commit is contained in:
parent
cbef61567d
commit
b5769155b4
@ -23,7 +23,7 @@
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8024343
|
||||
* @bug 8024343 8042098
|
||||
* @summary Test verifies that accelerated pipelines
|
||||
* correctly draws primitives in XOR mode.
|
||||
* @run main/othervm -Dsun.java2d.xrender=True AcceleratedXORModeTest
|
||||
@ -128,6 +128,7 @@ public class AcceleratedXORModeTest {
|
||||
|
||||
void test() {
|
||||
createVImg();
|
||||
BufferedImage bi = null;
|
||||
do {
|
||||
int valCode = vImg.validate(getDefaultGC());
|
||||
if (valCode == VolatileImage.IMAGE_INCOMPATIBLE) {
|
||||
@ -135,9 +136,11 @@ public class AcceleratedXORModeTest {
|
||||
}
|
||||
Graphics2D g = vImg.createGraphics();
|
||||
draw(g);
|
||||
BufferedImage bi = vImg.getSnapshot();
|
||||
bi = vImg.getSnapshot();
|
||||
} while (vImg.contentsLost());
|
||||
if (bi != null) {
|
||||
test(bi);
|
||||
write(bi);
|
||||
} while (vImg.contentsLost());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user