On Mon, 2 Jun 2025 19:11:12 GMT, Harshitha Onkar <hon...@openjdk.org> wrote:
>>> Added back Toolkit.sync() and canvas capture to paint method. Although I'm >>> not sure if I understood _"each render frame"_ correctly. Can you please >>> explain? >> >> The paint method may be invoked multiple times after the frame becomes >> visible, so the validation logic inside paint will be executed for each >> rendering data. > > oh okay, although when I debug I don't see paint method being called multiple > times. Probably the case when frame is resized or screen configuration > changes? Yes, and validation of each frame will confirm no garbage on the screen. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25279#discussion_r2122130577