|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Dual-path assertion harness for composited rendering. More...
#include "donner/svg/compositor/DualPathVerifier.h"
Classes | |
| struct | VerifyResult |
| Result of a dual-path verification pass. More... | |
Public Member Functions | |
| DualPathVerifier (CompositorController &compositor, RendererInterface &renderer) | |
| Construct a dual-path verifier. | |
| VerifyResult | renderAndVerify (const RenderViewport &viewport) |
| Render a frame through both paths and compare the results. | |
| const VerifyResult & | lastResult () const |
| Returns the result of the last renderAndVerify() call. | |
| const RendererBitmap & | compositorSnapshot () const |
| Returns the compositor snapshot from the last verification. | |
| const RendererBitmap & | referenceSnapshot () const |
| Returns the reference snapshot from the last verification. | |
Dual-path assertion harness for composited rendering.
Runs both the compositor path and a full re-render reference path, then pixel-diffs the results. Use this to verify that composited output matches the ground truth during development and testing.
The harness wraps a CompositorController and a RendererInterface, intercepting renderFrame to additionally perform a reference render and diff.
Usage in tests:
| donner::svg::compositor::DualPathVerifier::DualPathVerifier | ( | CompositorController & | compositor, |
| RendererInterface & | renderer ) |
Construct a dual-path verifier.
| compositor | The compositor controller to verify. |
| renderer | The renderer backend used for both the compositor and reference paths. |
| VerifyResult donner::svg::compositor::DualPathVerifier::renderAndVerify | ( | const RenderViewport & | viewport | ) |
Render a frame through both paths and compare the results.
| viewport | The viewport for both render passes. |