JDK-8128766 : WebView fails to display very large images in d3d mode
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 7-pool
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2011-10-14
  • Updated: 2015-06-17
  • Resolved: 2012-02-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.1Fixed
Related Reports
Blocks :  
Blocks :  
Blocks :  
Relates :  
Relates :  
Description
Try to open the attached image in Browser or WebLauncher in d3d mode. Although the browser is supposed to scale and display the image at the top of the viewport, WebView will display nothing. What happens is WebView attempts to create a texture for the entire image and fails, and thus decides not to draw the image. See WCImageImpl.draw() and WCImageImpl.updateTexture().

Comments
Fixed with http://jfxsrc.us.oracle.com/javafx/2.1/scrum/graphics/rt-closed/rev/0d70e0f5f9f1
20-02-2012

Here is the fix. Webrev: http://javaweb.us.oracle.com/jcg/fx-webrevs/RT-17425/1 Summary of changes: - If the image width and height are less than or equal to the maximum texture size, use a single texture to render the whole image or any part of the image. Otherwise re-use the functionality added in RT-17041 and refined in RT-18947 and RT-19363.
16-02-2012