Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::InteractionPromotionOutcome Struct Reference

Outcome of the most recent interaction-layer promotion request in one worker iteration. More...

#include "donner/editor/AsyncRenderer.h"

Public Attributes

bool requested = false
 True when this iteration asked the compositor to promote a selected or dragged entity.
Entity entity = entt::null
 Entity named by the most recent request, or entt::null when nothing was requested.
std::optional< svg::compositor::CompositorController::PromoteResult::Code > result
 Compositor result of the most recent request, or std::nullopt when nothing was requested.
std::size_t retainedBitmapBytes = 0
 Retained compositor total (bitmaps and textures) at the start of the most recent request.
std::size_t memoryBudgetBytes = 0
 The compositor's total admission threshold at the start of the most recent request.

Detailed Description

Outcome of the most recent interaction-layer promotion request in one worker iteration.

The retained total and the total admission threshold are sampled at the start of each request, before the compositor decides it. The compositor compares them only for a new promotion of an entity that holds no interaction hint yet, after target validation, the cached refusal, context classification, the hint refresh and the layer limit, and it adds one frame target of the most recent frame's canvas size to the retained total before comparing. An entity that already holds a hint is refreshed as PromotedLayer without that comparison. MemoryLimit also covers retained CPU bitmaps reaching the heap bitmap threshold, the per-tile interaction raster limit, and a cached refusal of a previously failed interaction root. So MemoryLimit with the retained total more than one canvas-sized surface below the threshold has another of those causes, and PromotedLayer with the retained total above the threshold is a refreshed hint.

When one iteration makes several requests (a multi-selection, or a retry after the first render), the last request wins: an earlier refusal can be followed by an admitted request.

Member Data Documentation

◆ entity

Entity donner::editor::InteractionPromotionOutcome::entity = entt::null

Entity named by the most recent request, or entt::null when nothing was requested.

◆ memoryBudgetBytes

std::size_t donner::editor::InteractionPromotionOutcome::memoryBudgetBytes = 0

The compositor's total admission threshold at the start of the most recent request.

◆ requested

bool donner::editor::InteractionPromotionOutcome::requested = false

True when this iteration asked the compositor to promote a selected or dragged entity.

◆ result

std::optional<svg::compositor::CompositorController::PromoteResult::Code> donner::editor::InteractionPromotionOutcome::result

Compositor result of the most recent request, or std::nullopt when nothing was requested.

◆ retainedBitmapBytes

std::size_t donner::editor::InteractionPromotionOutcome::retainedBitmapBytes = 0

Retained compositor total (bitmaps and textures) at the start of the most recent request.


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