|
| | GeodeDocumentGeometryBudget (std::shared_ptr< svg::components::DocumentResourceFamilyBudget > family=nullptr) |
| | Create a document geometry budget with an optional shared resource-family budget.
|
|
| GeodeDocumentGeometryBudget (const GeodeDocumentGeometryBudget &)=delete |
|
GeodeDocumentGeometryBudget & | operator= (const GeodeDocumentGeometryBudget &)=delete |
| bool | replaceCacheBytes (std::uint64_t previous, std::uint64_t replacement) |
| | Replace a caller's charged cache bytes, releasing or reserving the difference.
|
| void | releaseCacheBytes (std::uint64_t bytes) |
| | Release up to the specified cache bytes from this document's aggregate charge.
|
| bool | reserveResidentBytes (std::uint64_t bytes) |
| | Charges bytes of GPU residence, the chunks of every device's slabs for this document, unless that would take the document past its resident limit.
|
| void | releaseResidentBytes (std::uint64_t bytes) |
| | Release up to the specified GPU resident bytes from the aggregate charge.
|
| bool | reserveRampBytes (std::uint64_t bytes) |
| | Charges bytes of a gradient stop ramp kept across frames, its texture and its stop key, as GPU residence under the same limit and refusal rules as reserveResidentBytes, and counts them in rampBytes.
|
| void | releaseRampBytes (std::uint64_t bytes) |
| | Release up to bytes of kept gradient stop ramps from the resident charge.
|
| bool | reserveImageBytes (std::uint64_t bytes) |
| | Charges bytes of a decoded image's texture kept across frames as GPU residence under the same limit and refusal rules as reserveResidentBytes, and counts them in imageBytes.
|
| void | releaseImageBytes (std::uint64_t bytes) |
| | Release up to bytes of kept image textures from the resident charge.
|
| void | setLimitsForTesting (Limits limits) |
| | Tighten cache and resident limits for a test; production limits cannot be raised.
|
|
std::uint64_t | cacheBytes () const |
| | Cache geometry bytes currently charged to this document.
|
|
std::uint64_t | residentBytes () const |
| | GPU resident geometry, record, and uniform buffer bytes currently charged to this document.
|
|
std::uint64_t | rampBytes () const |
| | Bytes of gradient stop ramps kept across frames, a part of residentBytes.
|
|
std::uint64_t | imageBytes () const |
| | Bytes of decoded image textures kept across frames, a part of residentBytes.
|
|
bool | rejected () const |
| | Whether a cache or resident request has ever been refused.
|
Live document geometry retained outside the frame-local arena.
| bool donner::geode::GeodeDocumentGeometryBudget::reserveResidentBytes |
( |
std::uint64_t | bytes | ) |
|
|
inlinenodiscard |
Charges bytes of GPU residence, the chunks of every device's slabs for this document, unless that would take the document past its resident limit.
Residence is a cache the renderer can do without: a refused chunk leaves its geometry on the per-frame upload path. So each request is judged on the bytes charged at that moment, and a refusal does not refuse later requests: once a device's residence is released, another device can become resident again. rejected still reports that a request was refused.
- Parameters
-
- Returns
- Whether they were charged.