Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::AnimationResourceBudget Class Reference

Per-frame work and allocation envelope for untrusted SMIL animation values. More...

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

Public Member Functions

bool reserveAnimation (std::size_t sourceBytes)
bool reserveOutput (std::size_t bytes)
std::size_t animations () const
std::size_t sourceBytes () const
std::size_t outputBytes () const
bool rejected () const

Static Public Attributes

static constexpr std::size_t kMaximumAnimations = 4096
static constexpr std::size_t kMaximumSourceBytes = 1024 * 1024
static constexpr std::size_t kMaximumOutputBytes = 4 * 1024 * 1024
static constexpr std::size_t kMaximumNumbersPerValue = 64
static constexpr std::size_t kMaximumPathValueBytes = 64 * 1024

Detailed Description

Per-frame work and allocation envelope for untrusted SMIL animation values.


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