5#ifndef FLUTTER_SHELL_COMMON_DISPLAY_H_
6#define FLUTTER_SHELL_COMMON_DISPLAY_H_
10#include "flutter/fml/macros.h"
11#include "flutter/shell/common/variable_refresh_rate_reporter.h"
44 double device_pixel_ratio)
45 : display_id_(display_id),
46 refresh_rate_(refresh_rate),
49 device_pixel_ratio_(device_pixel_ratio) {}
61 virtual double GetWidth()
const {
return width_; }
64 virtual double GetHeight()
const {
return height_; }
84 double device_pixel_ratio_;
86 FML_DISALLOW_COPY_AND_ASSIGN(
Display);
virtual double GetRefreshRate() const
virtual double GetWidth() const
The width of the display in physical pixels.
DisplayId GetDisplayId() const
Returns the DisplayId of the display.
virtual double GetHeight() const
The height of the display in physical pixels.
Display(DisplayId display_id, double refresh_rate, double width, double height, double device_pixel_ratio)
Construct a new Display object in case where the display id of the display is known.
DisplayData GetDisplayData()
virtual ~Display()=default
virtual double GetDevicePixelRatio() const
The device pixel ratio of the display.
static constexpr double kUnknownDisplayRefreshRate
To be used when the display refresh rate is unknown.