RFR: 8314820: Unify Screen adapter ordinal logic

Kevin Rushforth kcr at openjdk.org
Tue Dec 16 16:46:17 UTC 2025


On Tue, 16 Dec 2025 12:42:05 GMT, Marius Hanl <mhanl at openjdk.org> wrote:

> This is a small improvement that was noted back in https://github.com/openjdk/jfx/pull/1200#issuecomment-1671954361 by @mstr2, and was on my list since then.
> 
> The idea is to have only one place for assigning `adapter ordinals` – within `Screen`. The corresponding setter `setAdapterOrdinal` can therefore be made private. This improves the separation of responsibilities a little. :-)

I want @lukostyra to also take a look at this.

(FWIW, I think this is fine, but since Lukasz is working on the Direct3D 12 pipeline, I wanted his take on it)

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

PR Comment: https://git.openjdk.org/jfx/pull/2009#issuecomment-3661448305
PR Comment: https://git.openjdk.org/jfx/pull/2009#issuecomment-3661454590


More information about the openjfx-dev mailing list