changeset 13985:7451bb69cfbc

7188093: closed/sun/java2d/pipe/ScaleQualityTest.java fails Reviewed-by: prr, flar
author ceisserer
date Mon, 01 Oct 2012 13:07:54 -0700
parents 390e11b8af80
children 7410b6bd0b77
files jdk/src/solaris/classes/sun/java2d/xr/XRDrawImage.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();