JDK-8101973 : Request for shaped clip support
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u6,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-07-25
  • Updated: 2015-07-22
  • Resolved: 2013-04-30
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.
JDK 7 JDK 8
7u40Fixed 8Fixed
Related Reports
Blocks :  
Blocks :  
Description
Currently Prism support rectangular clip only. I'd like to request support for clips that are arbitrary Paths. Something like
  Graphics.setClip(Path clip);

Webkit uses shaped clip extensively, so in WebView we have to work around by rendering to an offscreen image and blending with mask. This is very inefficient.
Comments
Verified on 8.0b104
28-08-2013

Verified in JDK 1.7.0_40b33 using attached app and samples from RT-24994.
18-07-2013

Fixed in the 8.0 graphics scrum with the following changesets: rt repo: changeset: 3419:3e1d7290c254 date: Fri Apr 26 17:25:22 2013 -0700 summary: Fix RT-23690: Faster clipping support for web node rt-closed repo: changeset: 18338:7ec4c727dd04 date: Fri Apr 26 17:25:55 2013 -0700 summary: Fix RT-23690: Faster clip support for web node
30-04-2013

I also pushed the follow-on changset to 2.2.6 graphics scrum: changeset: 16497:51ca9b0b3795 date: Tue Jan 15 15:15:02 2013 -0800 summary: Revert unintended line endings change to WebPage.java that were unintentionally committed with the fix for RT-23690.
15-01-2013

Fixed in the 2.2.6 graphics scrum with the following changesets: changeset: 16495:9db809fd56f4 date: Tue Jan 15 14:24:25 2013 -0800 summary: Fix for RT-23690 - optimize shaped clipping in Webview changeset: 16496:50d31f184a37 date: Tue Jan 15 14:28:23 2013 -0800 summary: Remove debug printouts that were unintentionally committed with the fix for RT-23690. The fix needs to be ported to 8.0 before the issue is marked resolved...
15-01-2013

Attaching the WebViewer.java app that can help with measuring the rendering time when used with the sample.html files attached to the dependent bug report RT-24994.
22-12-2012

Not completely sure, but I'd say we don't. We currently do blending with a mask, and the result seems fine.
30-07-2012

Do you need soft edges on this clip?
26-07-2012