On Thu, 28 Oct 2021 09:03:55 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Yes, this run() is called on "D3D Screen Updater" thread. It is reasonable >> that a new PaintEvent is posted when SurfaceData is replaced on this thread. >> I would limit posting new PaintEvent via createGraphics() only. > > Probably I should clarify my question, you added a parameter to the validate > method and pass the "true" so the "validate" method will post a paint event, > but just a few lines below there is a comment that the next code line > "sd.getPeer().replaceSurfaceDataLater();" also will post an event. Is the > comment outdated, or we will post two of them? @mrserb How long will it take to review this fix? ------------- PR: https://git.openjdk.java.net/jdk/pull/6064