mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
Refactor demo_view to work without GLFW (guarded by HB_GPU_NO_GLFW): - Add demo_view_create_headless() for non-GLFW use - Store fb/window dimensions in the view struct - Use emscripten_get_now() for timing when on Emscripten - Guard GLFW-specific calls (fullscreen, window close, cursor query) Rewrite WebGPU entry point to use demo_view and demo_renderer_t interface instead of duplicated view/input code. This gives the WebGPU demo identical trackball rotation, drag-release animation, keyboard shortcuts, and gamma cycling as the GL demos. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>