On Thu, 11 Nov 2021 19:21:34 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> I could add a J2dTraceLn(J2D_TRACE_ERROR, . . . ) in case an exception >> occurs. The J2dTraceLn is already used at some other places in >> DWMIsCompositionEnabled so it might fit better than just ignoring the >> exception. > > Before ignoring an exception it is better to check why the warning was > raised, if that warning is correct then we should try to propogate/report > exception to the app, if it is not possible then we should use trace macro. Hello, I added a trace call. This is similar to what is done in https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/native/libawt/java2d/d3d/D3DRenderQueue.cpp#L869 . ------------- PR: https://git.openjdk.java.net/jdk/pull/6306