On Tue, 4 May 2021 11:02:40 GMT, Jayathirth D V <j...@openjdk.org> wrote:

> We have many if else conditions to select OpenGL/Metal pipeline objects.
> Apart from initialization phase we should not fetch these objects everytime 
> checking whether we are using OpenGL/Metal pipeline.

src/java.desktop/macosx/classes/sun/java2d/opengl/CGLLayer.java line 60:

> 58:         return ptr;
> 59:     }
> 60: 

dispose and getBounds(probably some others) seems to have the same 
implementation in both classes?

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

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

Reply via email to