JetBrains / skija

Java bindings for Skia
Apache License 2.0
2.63k stars 127 forks source link

DirectContext: expose submit method (for dx12 integration) #123

Closed EgorOrachyov closed 3 years ago

EgorOrachyov commented 3 years ago

Expose DirectContext submit method, required to correctly resize swapchain in dx12. Although Surface flush and submit methods are called, it seems that DirectContext still has some pending work and as well has some references to native dx12 resource, therefore it is impossible to correctly resize swapchain. Solution: destroy DirectContext or call submit(syncCpu = true) as shown here skia dx12 demo