Aggregate stylesheet cascade and selector traversal budget for one style-computation pass.
More...
|
| | StyleResourceBudget (std::shared_ptr< DocumentResourceFamilyBudget > family=nullptr) |
| | Construct a style budget with default limits.
|
| | StyleResourceBudget (Limits limits, std::shared_ptr< DocumentResourceFamilyBudget > family=nullptr) |
| | Construct a style budget with caller-supplied limits.
|
|
| StyleResourceBudget (const StyleResourceBudget &)=delete |
|
StyleResourceBudget & | operator= (const StyleResourceBudget &)=delete |
| | StyleResourceBudget (StyleResourceBudget &&other) noexcept |
| | Transfer counters and retained-property reservations from another budget.
|
|
StyleResourceBudget & | operator= (StyleResourceBudget &&)=delete |
| bool | isRegistryActive (const Registry ®istry) const |
| | Return whether mutable storage is already on this render operation's traversal stack.
|
|
bool | reserveExternalInstanceWork (std::size_t entities) |
| | Admit bounded entity work for one external-use preparation against the frame allowance.
|
|
bool | reportExternalResourceWarning () |
| | Return true once per frame when an unsupported inherited resource needs a diagnostic.
|
|
void | setAggregateWorkBudget (StyleResourceBudget *budget) |
| | Set a frame-wide aggregate work allowance while an external-use scope is active.
|
|
void | reset () |
| | Reset traversal, match/declaration counters and local refusal; retained bytes remain.
|
|
bool | reserveRuleElementMatch () |
| | Charge one rule-to-element match, or latch rejection when a limit has been reached.
|
| bool | reserveDeclarationApplication (std::size_t componentCount=0, std::size_t sourceBytes=0) |
| | Charge one declaration application and its associated component and source work.
|
| bool | reserveComplexPropertyBytes (Entity entity, std::size_t byteCount) |
| | Set an entity's retained complex-property charge, releasing bytes on reductions.
|
| void | release (Entity entity) |
| | Release one entity's retained complex-property bytes, if it has a reservation.
|
|
void | releaseAll () |
| | Release all retained complex-property bytes without resetting other counters.
|
|
css::SelectorTraversalBudget & | selectorTraversal () |
| | Return the mutable selector traversal budget for this computation pass.
|
|
const css::SelectorTraversalBudget & | selectorTraversal () const |
| | Return the selector traversal budget for this computation pass.
|
|
std::size_t | ruleElementMatches () const |
| | Return the number of rule-to-element matches charged.
|
|
std::size_t | declarationApplications () const |
| | Return the number of declaration applications charged.
|
|
std::size_t | declarationComponentWork () const |
| | Return aggregate declaration component work units charged.
|
|
std::size_t | declarationByteWork () const |
| | Return aggregate declaration source bytes charged.
|
|
std::size_t | complexPropertyBytes () const |
| | Return retained complex-property bytes charged to this budget.
|
|
bool | rejected () const |
| | Return whether this budget or its selector traversal budget refused work.
|
|
const Limits & | limits () const |
| | Return the active cascade, traversal, and retained-property ceilings.
|
|
|
static constexpr std::size_t | kMaximumRuleElementMatches = 1024 * 1024 |
| | Default maximum rule-to-element matches in one computation pass.
|
|
static constexpr std::size_t | kMaximumDeclarationApplications = 1024 * 1024 |
| | Default maximum declaration applications in one pass.
|
|
static constexpr std::size_t | kMaximumDeclarationComponentWork = 16 * 1024 * 1024 |
| | Default maximum aggregate declaration component work units.
|
|
static constexpr std::size_t | kMaximumDeclarationByteWork = 16 * 1024 * 1024 |
| | Default maximum aggregate declaration source bytes charged.
|
|
static constexpr std::size_t | kMaximumComplexPropertyBytes = 64 * 1024 * 1024 |
| | Default maximum retained complex-property bytes.
|
Aggregate stylesheet cascade and selector traversal budget for one style-computation pass.