JDK-8325379 : Refactor Glass classes to support both GL and Metal
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2024-02-07
  • Updated: 2025-05-12
  • Resolved: 2025-02-21
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
internalFixed
Related Reports
Blocks :  
Blocks :  
Causes :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Current Glass code is implemented using OpenGL. 
As part of Metal Rendering Pipeline implementation, we have implemented Glass code  using Metal APIs.

As both OpenGL and Metal rendering pipelines would be available for JavaFX for some foreseeable period of time, we would need to support both the pipelines (one default, and other to opt-in by the user)

To achieve the above, we would need to refactor the glass code to have common code in base class and move OpenGL and Metal specific code to their respective derived classes.
Comments
Changeset: 2ffcd151 Branch: metal Author: Jayathirth Rao D V <“jdv@openjdk.org”> Date: 2025-02-21 16:08:09 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/2ffcd1515f758c498827a47a1e34aed1fecbce47
21-02-2025

- GlassWindow - reflectively uses GL, checks if layer is GL (add (MTL) code path)
29-04-2024