7188093: closed/sun/java2d/pipe/ScaleQualityTest.java fails
Reviewed-by: prr, flar
--- a/jdk/src/solaris/classes/sun/java2d/xr/XRDrawImage.java Fri Sep 28 11:45:43 2012 -0700
+++ b/jdk/src/solaris/classes/sun/java2d/xr/XRDrawImage.java Mon Oct 01 13:07:54 2012 -0700
@@ -27,6 +27,7 @@
import java.awt.*;
import java.awt.geom.*;
+import java.awt.image.*;
import sun.java2d.*;
import sun.java2d.loops.*;
@@ -45,8 +46,8 @@
SurfaceData srcData = dstData.getSourceSurfaceData(img,
SunGraphics2D.TRANSFORM_GENERIC, sg.imageComp, bgColor);
- if (srcData != null && !isBgOperation(srcData, bgColor)) { // TODO: Do we bail out on bgBlits?
- // && srcData instanceof XRSurfaceData) {
+ if (srcData != null && !isBgOperation(srcData, bgColor)
+ && interpType <= AffineTransformOp.TYPE_BILINEAR) {
SurfaceType srcType = srcData.getSurfaceType();
SurfaceType dstType = dstData.getSurfaceType();