Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::SceneRecording Class Reference

Opaque handle to a subtree's recorded draw commands, produced by Canvas::record_scene() and replayed by Canvas::draw_scene(). More...

#include <scene_recording.hpp>

Public Member Functions

virtual ~SceneRecording ()=default

Detailed Description

Opaque handle to a subtree's recorded draw commands, produced by Canvas::record_scene() and replayed by Canvas::draw_scene().

It is deliberately empty at this layer: each backend subclasses it with its own recording payload (the Skia backend wraps an SkPicture) and draw_scene() downcasts to recognise its own type, returning false for a foreign recording. Callers hold it through a std::shared_ptr so a recording survives across frames until the owner invalidates it — that cross-frame lifetime is the whole point of the scene-cache seam (FU-3).

Lives in its own tiny header (included by canvas.hpp for back-compat) so the type can be named by cache holders without dragging in the full Canvas interface.

Constructor & Destructor Documentation

◆ ~SceneRecording()

virtual pulp::canvas::SceneRecording::~SceneRecording ( )
virtualdefault

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