[OpenJDK 2D-Dev] Review request for 8069348 SunGraphics2D.copyArea() does not properly work for scaled graphics in D3D

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Fri Nov 20 11:49:10 UTC 2015


Hello,

Could you review the fix:
   bug: https://bugs.openjdk.java.net/browse/JDK-8069348
   webrev: http://cr.openjdk.java.net/~alexsch/8069348/webrev.00

   For some reasons Blit operation does not properly work in the 
SunGraphics2D.copyArea() method
   with scaled transform neither on Windows nor on Mac OS X.
   I have filled an issue on it: JDK-8143392 SunGraphics2D.copyArea() 
does not properly handle Blit operation

   The current solution updates D3DSurfaceData.copyArea() to handle 
scaled graphics in the same way
   as it has been already done for the CGLSurfaceData (see JDK-8000629 
[macosx] Blurry rendering with Java 7 on Retina display).

   May be there is a way to avoid the code duplication: put it to some 
SurfaceDataUtils class (it also
   requires adding parent copyArea() method to BufferedRenderPipe) or 
something else. I am not sure about the best option.


   Thanks,
   Alexandr.




More information about the 2d-dev mailing list