5#include "flutter/shell/common/display_manager.h"
7#include "flutter/fml/logging.h"
8#include "flutter/fml/macros.h"
17 std::scoped_lock lock(displays_mutex_);
18 if (displays_.empty()) {
21 return displays_[0]->GetRefreshRate();
26 std::vector<std::unique_ptr<Display>> displays) {
28 std::scoped_lock lock(displays_mutex_);
29 displays_ = std::move(displays);
double GetMainDisplayRefreshRate() const
void HandleDisplayUpdates(std::vector< std::unique_ptr< Display > > displays)
Handles the display updates.
#define FML_DCHECK(condition)
static constexpr double kUnknownDisplayRefreshRate
To be used when the display refresh rate is unknown.