Skip to content
Permalink
Browse files
8263488: Verify CWarningWindow works with metal rendering pipeline
Reviewed-by: serb, pbansal, avu, kizune
  • Loading branch information
aghaisas committed Mar 22, 2021
1 parent 5a7f22a commit 42104e5575a73c5c163f0b8c8b686543a5117f42
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/java.desktop/macosx/classes/sun/java2d/metal/MTLLayer.java
@@ -92,8 +92,10 @@ public SurfaceData replaceSurfaceData() {
MTLGraphicsConfig gc = (MTLGraphicsConfig)getGraphicsConfiguration();
surfaceData = gc.createSurfaceData(this);
setScale(gc.getDevice().getScaleFactor());
Insets insets = peer.getInsets();
execute(ptr -> nativeSetInsets(ptr, insets.top, insets.left));
if (peer != null) {
Insets insets = peer.getInsets();
execute(ptr -> nativeSetInsets(ptr, insets.top, insets.left));
}
// the layer holds a reference to the buffer, which in
// turn has a reference back to this layer
if (surfaceData instanceof MTLSurfaceData) {

1 comment on commit 42104e5

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 42104e5 Mar 22, 2021

Please sign in to comment.