Print this page
Added gradle and cmake project

*** 106,115 **** --- 106,117 ---- import sun.awt.CGraphicsDevice; import sun.awt.LightweightFrame; import sun.awt.SunToolkit; import sun.awt.datatransfer.DataTransferer; import sun.awt.util.ThreadGroupUtils; + import sun.java2d.macos.MacOSFlags; + import sun.java2d.metal.MTLRenderQueue; import sun.java2d.opengl.OGLRenderQueue; import sun.lwawt.LWComponentPeer; import sun.lwawt.LWCursorManager; import sun.lwawt.LWToolkit; import sun.lwawt.LWWindowPeer;
*** 474,484 **** --- 476,490 ---- } @Override public void sync() { // flush the OGL pipeline (this is a no-op if OGL is not enabled) + if (MacOSFlags.isMetalEnabled()) { + MTLRenderQueue.sync(); + } else { OGLRenderQueue.sync(); + } // setNeedsDisplay() selector was sent to the appropriate CALayer so now // we have to flush the native selectors queue. flushNativeSelectors(); }