<AWT Dev> RFR: 8266079: Lanai: AlphaComposite shows differences on Metal compared to OpenGL
Alexey Ushakov
avu at openjdk.java.net
Mon Aug 2 20:07:32 UTC 2021
On Mon, 2 Aug 2021 18:26:45 GMT, Sergey Bylokhov <serb 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());)
Yes, and we need this call here to initialise content view with correct default value
CPlatformWindow.java:931 contentView.setWindowLayerOpaque(isOpaque);
-------------
PR: https://git.openjdk.java.net/jdk/pull/4946
More information about the awt-dev
mailing list