RFR: 8275715: D3D pipeline processes multiple PaintEvent at initial drawing [v2]

Masanori Yano myano at openjdk.java.net
Fri Nov 5 12:30:17 UTC 2021


On Thu, 28 Oct 2021 09:03:55 GMT, Sergey Bylokhov <serb at 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 Could you please review and reply to the above comment?

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

PR: https://git.openjdk.java.net/jdk/pull/6064



More information about the client-libs-dev mailing list