RFR: 8304825: MacOS metal pipeline - window isn't painted if created during display sleep

Kevin Rushforth kcr at openjdk.org
Fri Apr 7 11:54:45 UTC 2023


On Thu, 6 Apr 2023 14:16:46 GMT, Ajit Ghaisas <aghaisas at openjdk.org> wrote:

> Root cause : The CVDisplayLink used in MTLLayer stops invoking callbacks on screen sleep and wakeup event. It is found that stop and restart of CVDisplayLink on these events also does not help.
> 
> Fix : Recreate the CVDisplayLink on screen sleep and wakeup event.

Looks good to me. I tested this on an M1 MacBook. The test program attached to the bug fails without your fix and passes with your fix.

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

Marked as reviewed by kcr (Author).

PR Review: https://git.openjdk.org/jdk/pull/13375#pullrequestreview-1376126786



More information about the client-libs-dev mailing list