Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::gui::internal::PresentationDeviceLossRecord Struct Reference

Immutable first observation of settled presentation-device loss diagnostics. More...

#include "donner/editor/gui/EditorWindow.h"

Classes

struct  Observation
 Expensive owner-thread details acquired only for the first settled loss. More...

Public Types

using Clock = std::chrono::steady_clock
 Monotonic clock that timestamps the observation.

Public Member Functions

template<typename ObservationProvider>
requires std::invocable<ObservationProvider&> && std::same_as<std::invoke_result_t<ObservationProvider&>, Observation>
bool observe (const gpu::DeviceLossSnapshot &candidate, ObservationProvider &&provider)
 Retains the first settled loss and rejects healthy, provisional, and repeated observations.

Public Attributes

bool observed = false
 Whether a settled loss has been retained.
gpu::DeviceLossSnapshot loss
 Attribution published by the winning declaration.
Clock::time_point observedAt
 First observation time, not physical loss time.
std::uint64_t completedSerial = 0
 Runtime completion at first observation.
std::uint64_t submittedSerial = 0
 Last submitted serial at first observation.
std::uint64_t oldestSerial = 0
 Oldest presentation serial at first observation.
RcString browserReason
 Browser-retained reason, empty for non-browser/explicit loss.

Detailed Description

Immutable first observation of settled presentation-device loss diagnostics.


Class Documentation

◆ donner::editor::gui::internal::PresentationDeviceLossRecord::Observation

struct donner::editor::gui::internal::PresentationDeviceLossRecord::Observation

Expensive owner-thread details acquired only for the first settled loss.

Class Members
RcString browserReason
uint64_t completedSerial = 0
time_point observedAt
uint64_t oldestSerial = 0
uint64_t submittedSerial = 0

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