RFR: 8258754: Gracefully fallback to the OpenGL rendering pipeline if Metal rendering pipeline initialization fails [v5]

Ajit Ghaisas aghaisas at openjdk.java.net
Mon Jan 11 09:50:26 UTC 2021


On Fri, 8 Jan 2021 19:24:37 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Ajit Ghaisas has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Cover all combinations of OGL and Metal pipelines
>
> src/java.desktop/macosx/classes/sun/java2d/macos/MacOSFlags.java line 126:
> 
>> 124: 
>> 125:                     boolean oglAvailable = CGLGraphicsConfig.isCGLAvailable();
>> 126:                     boolean metalAvailable = MTLGraphicsConfig.isMetalAvailable();
> 
> This will attempt to initialize both, loading both native libraries, even in the typical case where we don't fallback. Is this what we want?

Ah.. No, we do not want that. Refined now.

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

PR: https://git.openjdk.java.net/lanai/pull/147


More information about the lanai-dev mailing list