7188093: closed/sun/java2d/pipe/ScaleQualityTest.java fails
authorceisserer
Mon, 01 Oct 2012 13:07:54 -0700
changeset 13985 7451bb69cfbc
parent 13984 390e11b8af80
child 13986 7410b6bd0b77
7188093: closed/sun/java2d/pipe/ScaleQualityTest.java fails Reviewed-by: prr, flar
jdk/src/solaris/classes/sun/java2d/xr/XRDrawImage.java
--- 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();