Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::AnimationContextualWorkBudget Class Reference

Shared contextual preparation allowance; used only by serialized document preparation. More...

#include "donner/svg/components/animation/AnimationResourceBudget.h"

Public Member Functions

std::size_t remaining () const
 Remaining preparation work across this render operation's document occurrences.
void reset ()
 Reset only at the outer owner-frame boundary.
bool reserve (std::size_t work)
 Admit work before copying or normalization.

Static Public Attributes

static constexpr std::size_t kMaximumWork = 4 * 1024 * 1024
 Total preparation work admitted between resets.

Detailed Description

Shared contextual preparation allowance; used only by serialized document preparation.

Member Function Documentation

◆ reserve()

bool donner::svg::components::AnimationContextualWorkBudget::reserve ( std::size_t work)
inline

Admit work before copying or normalization.

Parameters
workConservative work cost.

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