Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::TestRefreshRateReporter Class Referencefinal

#include <vsync_waiters_test.h>

Inheritance diagram for flutter::testing::TestRefreshRateReporter:
flutter::VariableRefreshRateReporter

Public Member Functions

 TestRefreshRateReporter (double refresh_rate)
 
void UpdateRefreshRate (double refresh_rate)
 
double GetRefreshRate () const override
 
- Public Member Functions inherited from flutter::VariableRefreshRateReporter
 VariableRefreshRateReporter ()=default
 
virtual double GetRefreshRate () const =0
 
 FML_DISALLOW_COPY_AND_ASSIGN (VariableRefreshRateReporter)
 

Detailed Description

Definition at line 61 of file vsync_waiters_test.h.

Constructor & Destructor Documentation

◆ TestRefreshRateReporter()

flutter::testing::TestRefreshRateReporter::TestRefreshRateReporter ( double  refresh_rate)
explicit

Definition at line 67 of file vsync_waiters_test.cc.

68 : refresh_rate_(refresh_rate) {}

Member Function Documentation

◆ GetRefreshRate()

double flutter::testing::TestRefreshRateReporter::GetRefreshRate ( ) const
overridevirtual

Implements flutter::VariableRefreshRateReporter.

Definition at line 74 of file vsync_waiters_test.cc.

74 {
75 return refresh_rate_;
76}

◆ UpdateRefreshRate()

void flutter::testing::TestRefreshRateReporter::UpdateRefreshRate ( double  refresh_rate)

Definition at line 70 of file vsync_waiters_test.cc.

70 {
71 refresh_rate_ = refresh_rate;
72}

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