Flutter Engine
flutter::FrameTiming Class Reference

#include <settings.h>

Public Types

enum  Phase {
  kVsyncStart,
  kBuildStart,
  kBuildFinish,
  kRasterStart,
  kRasterFinish,
  kCount
}
 

Public Member Functions

fml::TimePoint Get (Phase phase) const
 
fml::TimePoint Set (Phase phase, fml::TimePoint value)
 

Static Public Attributes

static constexpr Phase kPhases [kCount]
 

Detailed Description

Definition at line 24 of file settings.h.

Member Enumeration Documentation

◆ Phase

Enumerator
kVsyncStart 
kBuildStart 
kBuildFinish 
kRasterStart 
kRasterFinish 
kCount 

Definition at line 26 of file settings.h.

Member Function Documentation

◆ Get()

fml::TimePoint flutter::FrameTiming::Get ( Phase  phase) const
inline

Definition at line 38 of file settings.h.

References phase.

Referenced by flutter::Shell::GetDartVM(), flutter::testing::TEST(), and flutter::testing::TEST_F().

38 { return data_[phase]; }
FlutterPointerPhase phase
Definition: fl_view.cc:78

◆ Set()

fml::TimePoint flutter::FrameTiming::Set ( Phase  phase,
fml::TimePoint  value 
)
inline

Definition at line 39 of file settings.h.

References kCount, phase, and value.

Referenced by flutter::Rasterizer::Draw(), flutter::testing::TEST(), and flutter::testing::TEST_F().

39  {
40  return data_[phase] = value;
41  }
uint8_t value
FlutterPointerPhase phase
Definition: fl_view.cc:78

Member Data Documentation

◆ kPhases


The documentation for this class was generated from the following files: