#[repr(i32)]pub enum ChromeCompositorSchedulerAction {
Show 14 variants
CcSchedulerActionUnspecified = 0,
CcSchedulerActionNone = 1,
CcSchedulerActionSendBeginMainFrame = 2,
CcSchedulerActionCommit = 3,
CcSchedulerActionActivateSyncTree = 4,
CcSchedulerActionDrawIfPossible = 5,
CcSchedulerActionDrawForced = 6,
CcSchedulerActionDrawAbort = 7,
CcSchedulerActionBeginLayerTreeFrameSinkCreation = 8,
CcSchedulerActionPrepareTiles = 9,
CcSchedulerActionInvalidateLayerTreeFrameSink = 10,
CcSchedulerActionPerformImplSideInvalidation = 11,
CcSchedulerActionNotifyBeginMainFrameNotExpectedUntil = 12,
CcSchedulerActionNotifyBeginMainFrameNotExpectedSoon = 13,
}Expand description
Describes Chrome’s Compositor scheduler’s current state and associated variables.
These protos and enums were adapted from the corresponding original JSON trace event for the scheduler state. In contrast to the JSON, we use strongly typed enum values instead of strings for many fields, and microsecond-granularity timestamps.
The original format was generated in JSON by the code at https://cs.chromium.org/chromium/src/cc/scheduler/scheduler.cc?l=870&rcl=5e15eabc9c0eec8daf94fdf78e93f13b6e3b63dd
And is now generated as protozero: https://cs.chromium.org/chromium/src/cc/scheduler/scheduler.cc?q=Scheduler::AsPro
All non-delta-timestamps are absolute CLOCK_MONOTONIC timestamps.
Variants§
CcSchedulerActionUnspecified = 0
CcSchedulerActionNone = 1
CcSchedulerActionSendBeginMainFrame = 2
CcSchedulerActionCommit = 3
CcSchedulerActionActivateSyncTree = 4
CcSchedulerActionDrawIfPossible = 5
CcSchedulerActionDrawForced = 6
CcSchedulerActionDrawAbort = 7
CcSchedulerActionBeginLayerTreeFrameSinkCreation = 8
CcSchedulerActionPrepareTiles = 9
CcSchedulerActionInvalidateLayerTreeFrameSink = 10
CcSchedulerActionPerformImplSideInvalidation = 11
CcSchedulerActionNotifyBeginMainFrameNotExpectedUntil = 12
CcSchedulerActionNotifyBeginMainFrameNotExpectedSoon = 13
Implementations§
Source§impl ChromeCompositorSchedulerAction
impl ChromeCompositorSchedulerAction
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of ChromeCompositorSchedulerAction.
Sourcepub fn from_i32(value: i32) -> Option<ChromeCompositorSchedulerAction>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ChromeCompositorSchedulerAction>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ChromeCompositorSchedulerAction, or None if value is not a valid variant.
Source§impl ChromeCompositorSchedulerAction
impl ChromeCompositorSchedulerAction
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.