On Thu, 6 Apr 2023 14:16:46 GMT, Ajit Ghaisas <aghai...@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

Reply via email to