Flutter Engine
The Flutter Engine
Namespaces | Functions
variable_refresh_rate_display.cc File Reference
#include "flutter/shell/common/variable_refresh_rate_display.h"
#include "flutter/fml/logging.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 

Functions

static double GetInitialRefreshRate (const std::weak_ptr< flutter::VariableRefreshRateReporter > &refresh_rate_reporter)
 

Function Documentation

◆ GetInitialRefreshRate()

static double GetInitialRefreshRate ( const std::weak_ptr< flutter::VariableRefreshRateReporter > &  refresh_rate_reporter)
static

Definition at line 8 of file variable_refresh_rate_display.cc.

10 {
11 if (auto reporter = refresh_rate_reporter.lock()) {
12 return reporter->GetRefreshRate();
13 }
14 return 0;
15}
reporter
Definition: FontMgrTest.cpp:39