|
|
Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
|
#include <cstdint>#include <span>#include <string>#include <string_view>#include "donner/base/Box.h"#include "donner/base/Vector2.h"#include "donner/svg/compositor/CompositorController.h"Classes | |
| struct | donner::editor::CompositorHeuristicTelemetryContext |
| Context fields written with a compositor heuristic telemetry snapshot. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Enumerations | |
| enum class | donner::editor::CanvasFreshness { Current , CommitStalled , CompositorBehind } |
| Canvas freshness state shown by the layer inspector. | |
Functions | |
| CanvasFreshness | donner::editor::ClassifyCanvasFreshness (const Vector2i &viewportDesiredCanvas, const Vector2i &documentCanvas, const Vector2i &compositorCanvas) |
| Classify desired, document, and compositor canvas-size agreement. | |
| std::string_view | donner::editor::CanvasFreshnessStatusSuffix (CanvasFreshness freshness) |
| User-visible status suffix for a canvas freshness state. | |
| std::string | donner::editor::BuildCompositorHeuristicTelemetryJson (std::span< const svg::compositor::CompositorController::CompositeTileSnapshot > tiles, const CompositorHeuristicTelemetryContext &context) |
| Serialize the current compositor span heuristic state as one JSON object. | |
| std::string | donner::editor::BuildCompositorHeuristicTelemetrySampleJson (const svg::compositor::CompositorController::CompositeTileSnapshot &tile, const CompositorHeuristicTelemetryContext &context, std::uint64_t sequence) |
| Serialize one segment heuristic sample as one JSONL record. | |
| bool | donner::editor::AppendCompositorHeuristicTelemetry (std::string_view path, std::string_view json, std::string *error) |
| Append a compositor heuristic telemetry record to a JSONL file. | |
| bool | donner::editor::SaveCompositorHeuristicTelemetry (std::string_view path, std::string_view json, std::string *error) |
| Save compositor heuristic telemetry to a JSONL file, replacing any existing contents. | |
|
nodiscard |
Append a compositor heuristic telemetry record to a JSONL file.
| path | Destination file path. |
| json | One JSON object, normally returned by BuildCompositorHeuristicTelemetryJson. |
| error | Optional destination for a human-readable failure message. |
|
nodiscard |
Serialize the current compositor span heuristic state as one JSON object.
| tiles | Paint-order composite tile snapshot from the async renderer. |
| context | Viewport, canvas, and aggregate compositor state. |
|
nodiscard |
Serialize one segment heuristic sample as one JSONL record.
| tile | Segment tile to serialize. |
| context | Viewport, canvas, and aggregate compositor state. |
| sequence | Monotonic sample sequence assigned by the editor. |
|
nodiscard |
User-visible status suffix for a canvas freshness state.
| freshness | State returned by ClassifyCanvasFreshness. |
|
nodiscard |
Classify desired, document, and compositor canvas-size agreement.
| viewportDesiredCanvas | Canvas size implied by the current viewport. |
| documentCanvas | Canvas size committed to the SVG document. |
| compositorCanvas | Canvas size last rasterized by the compositor. |
|
nodiscard |
Save compositor heuristic telemetry to a JSONL file, replacing any existing contents.
| path | Destination file path. |
| json | JSONL payload to write. |
| error | Optional destination for a human-readable failure message. |