/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 5009033 6603000 6666362
* @summary Verifies that images transformed with bilinear filtering do not
* leave artifacts at the edges.
* @author campbelc
*/
private static boolean done;
try {
} catch (InterruptedException ex) {}
// Grab the screen region
try {
} catch (Exception e) {
e.printStackTrace();
}
}
//g.setColor(Color.green);
//g.drawRect(0, 0, SIZE-1, SIZE-1);
g.dispose();
}
}
do {
// first time will be a sw->surface blit
// second time will be a texture->surface blit
if (!skipOglTextureTest) {
}
// third time will be a pbuffer->surface blit
}
} while (vimg.contentsLost());
synchronized (this) {
if (!done) {
doCapture(this);
done = true;
}
notifyAll();
}
}
}
{
int x1 = affectedRegion.x;
int y1 = affectedRegion.y;
" (expected=0xffff0000"+
" actual=0x"+
")");
}
}
}
}
private static boolean skipOglTextureTest = false;
boolean show = false;
show = true;
}
}
frame.setVisible(true);
// Wait until the component's been painted
synchronized (test) {
while (!done) {
try {
} catch (InterruptedException e) {
throw new RuntimeException("Failed: Interrupted");
}
}
}
"test considered PASSED");
return;
}
if (!show) {
}
throw new RuntimeException("Failed: capture is null");
}
// Test background color
if (pixel != 0xffffffff) {
throw new RuntimeException("Failed: Incorrect color for " +
"background");
}
// Test pixels
}
}