JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.3k stars 193 forks source link

JBR-7020 Reorder LCD glyph cache freeing and validation #368

Closed YaaZ closed 5 months ago

YaaZ commented 5 months ago
  1. As we started committing the command buffer on glyph cache flush, this invalidates the current encoder. We need to MTLTR_ValidateGlyphCache after the flush, not before.
  2. There's no reason to maintain separate glyph cache invalidation logic for this singe case (which is a no-op in reality), so just free the cache instead.