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

Aggregate decoded-outline and path-copy budget shared by one renderer frame. More...

#include "donner/svg/renderer/RendererInterface.h"

Classes

struct  Cost

Public Member Functions

void reset ()
bool reserve (const Cost &cost)
void reject ()
bool reserveGlyphOccurrences (std::size_t count)
bool reservePathCopy (const Path &path)
void setLimitsForTesting (Cost limits)
void setGlyphOccurrenceLimitForTesting (std::size_t maximum)
const Costlimits () const
std::size_t uniqueOutlines () const
std::size_t commands () const
std::size_t points () const
std::uint64_t bytes () const
std::size_t decodeWork () const
std::size_t glyphOccurrences () const
bool rejected () const

Static Public Attributes

static constexpr std::size_t kMaximumUniqueOutlines = 1024
static constexpr std::size_t kMaximumCommands = 4 * 1024 * 1024
static constexpr std::size_t kMaximumPoints = 8 * 1024 * 1024
static constexpr std::uint64_t kMaximumBytes = 64ULL * 1024 * 1024
static constexpr std::size_t kMaximumDecodeWork = 64 * 1024 * 1024
static constexpr std::size_t kMaximumGlyphOccurrences = 64 * 1024

Detailed Description

Aggregate decoded-outline and path-copy budget shared by one renderer frame.


Class Documentation

◆ donner::svg::RendererTextMaterializationBudget::Cost

struct donner::svg::RendererTextMaterializationBudget::Cost
Class Members
uint64_t bytes = 0
size_t commands = 0
size_t decodeWork = 0
size_t points = 0
size_t uniqueOutlines = 0

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