Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::sandbox::RenderResult Struct Reference

Result payload for a render call. Fields are populated according to status — see each field comment for when it's valid. More...

#include "donner/editor/sandbox/SandboxHost.h"

Collaboration diagram for donner::editor::sandbox::RenderResult:
[legend]

Public Attributes

SandboxStatus status = SandboxStatus::kOk
int exitCode = 0
 Raw exit code (0 on success), or -signal when the child died on a signal.
std::string diagnostics
 Child's stderr captured verbatim. Always available regardless of status.
std::vector< uint8_t > png
 PNG-encoded image bytes. Populated only by render() on kOk.
std::vector< uint8_t > wire
 Raw wire-format bytes read from the child's stdout. Always populated when the child reached kEndFrame, regardless of whether the host-side replay succeeded. Useful for debugging and for piping into a file recorder (see S4 in the design doc).
uint32_t unsupportedCount = 0
 Count of kUnsupported messages the replayer observed, if any. A non-zero value means the output is lossy compared to an in-process render (gradients, filters, masks, etc.).

Detailed Description

Result payload for a render call. Fields are populated according to status — see each field comment for when it's valid.

Member Data Documentation

◆ diagnostics

std::string donner::editor::sandbox::RenderResult::diagnostics

Child's stderr captured verbatim. Always available regardless of status.

◆ exitCode

int donner::editor::sandbox::RenderResult::exitCode = 0

Raw exit code (0 on success), or -signal when the child died on a signal.

◆ png

std::vector<uint8_t> donner::editor::sandbox::RenderResult::png

PNG-encoded image bytes. Populated only by render() on kOk.

◆ status

SandboxStatus donner::editor::sandbox::RenderResult::status = SandboxStatus::kOk

◆ unsupportedCount

uint32_t donner::editor::sandbox::RenderResult::unsupportedCount = 0

Count of kUnsupported messages the replayer observed, if any. A non-zero value means the output is lossy compared to an in-process render (gradients, filters, masks, etc.).

◆ wire

std::vector<uint8_t> donner::editor::sandbox::RenderResult::wire

Raw wire-format bytes read from the child's stdout. Always populated when the child reached kEndFrame, regardless of whether the host-side replay succeeded. Useful for debugging and for piping into a file recorder (see S4 in the design doc).


The documentation for this struct was generated from the following file: