1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

egui_kittest: PNG-encode inspector screenshots via shared egui_inspection::encode_png

- Encode harness frames with egui_inspection::encode_png instead of sending raw RGBA, so
  the inspector socket carries compressed bytes.
- Features: pull egui_inspection/png + image/png for the encoder; drop the now-removed
  egui_inspection `protocol` feature.
This commit is contained in:
lucasmerlin
2026-05-26 16:20:55 +02:00
parent e3414bec9d
commit 501eaba386
2 changed files with 21 additions and 7 deletions

View File

@@ -29,11 +29,11 @@ snapshot = ["dep:dify", "dep:image", "dep:open", "dep:tempfile", "image/png"]
## Expose the [`inspector_api`] wire protocol used to talk to the external
## `kittest_inspector` binary. Pull this in if you're building a tool that consumes the
## same stream — the binary itself enables this transitively.
inspector_api = ["dep:egui_inspection", "egui_inspection/protocol", "egui/serde"]
inspector_api = ["dep:egui_inspection", "egui/serde"]
## Stream frames + accesskit tree to a `kittest_inspector` window for live debugging.
## Auto-launches when the `KITTEST_INSPECTOR` env var is truthy.
inspector = ["inspector_api", "dep:image"]
inspector = ["inspector_api", "egui_inspection/png", "dep:image", "image/png"]
## Allows testing eframe::App
eframe = ["dep:eframe", "eframe/accesskit"]