Aggregate budget for render targets, layers, masks, clips, and pattern tiles.
More...
#include "donner/svg/renderer/RendererInterface.h"
|
|
void | reset () |
|
bool | reserve (int width, int height, std::size_t surfaceCount=1, std::uint64_t bytesPerPixel=4) |
| bool | canReserveBytes (std::uint64_t bytes, std::size_t surfaces) const |
| | Tests additional capacity without changing counters or latching a rejection.
|
|
bool | release (int width, int height, std::size_t surfaceCount=1, std::uint64_t bytesPerPixel=4) |
| | Releases surfaces after their last submitted GPU use, restoring active-capacity accounting.
|
|
std::uint64_t | bytes () const |
|
std::size_t | surfaces () const |
|
bool | rejected () const |
|
void | setLimitsForTesting (Limits limits) |
|
|
static constexpr std::uint64_t | kMaximumBytes = 256ULL * 1024 * 1024 |
|
static constexpr std::size_t | kMaximumSurfaces = 256 |
Aggregate budget for render targets, layers, masks, clips, and pattern tiles.
◆ donner::svg::RendererSurfaceBudget::Limits
| struct donner::svg::RendererSurfaceBudget::Limits |
| Class Members |
|
uint64_t |
bytes = kMaximumBytes |
|
|
size_t |
surfaces = kMaximumSurfaces |
|
◆ canReserveBytes()
| bool donner::svg::RendererSurfaceBudget::canReserveBytes |
( |
std::uint64_t | bytes, |
|
|
std::size_t | surfaces ) const |
|
inlinenodiscard |
Tests additional capacity without changing counters or latching a rejection.
- Parameters
-
| bytes | Additional allocation bytes. |
| surfaces | Additional texture count. |
The documentation for this class was generated from the following file: