<AWT Dev> RFR: 8266079: Lanai: AlphaComposite shows differences on Metal compared to OpenGL

Sergey Bylokhov serb at openjdk.java.net
Mon Aug 2 18:29:33 UTC 2021


On Fri, 30 Jul 2021 15:39:19 GMT, Alexey Ushakov <avu at openjdk.org> wrote:

> Keep MTLLayer opacity in sync with window content view
> Keep layer translucent for translucent windows

src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java line 199:

> 197: 
> 198:         platformWindow.initialize(target, this, ownerDelegate);
> 199:         platformWindow.setOpaque(!isTranslucent());

!isTranslucent() uses the opaque flag which will be initialised in the code below(see setOpaque(getTarget().isOpaque());)

-------------

PR: https://git.openjdk.java.net/jdk/pull/4946


More information about the awt-dev mailing list