5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_DISPLAY_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_DISPLAY_H_
10#include "flutter/fml/macros.h"
11#include "flutter/shell/common/display.h"
12#include "flutter/shell/platform/android/jni/platform_view_android_jni.h"
19 explicit AndroidDisplay(std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
26 virtual double GetWidth()
const override;
29 virtual double GetHeight()
const override;
35 std::shared_ptr<PlatformViewAndroidJNI> jni_facade_;
A |Display| that listens to refresh rate changes.
AndroidDisplay(std::shared_ptr< PlatformViewAndroidJNI > jni_facade)
~AndroidDisplay()=default
virtual double GetDevicePixelRatio() const override
The device pixel ratio of the display.
virtual double GetWidth() const override
The width of the display in physical pixels.
virtual double GetHeight() const override
The height of the display in physical pixels.
double GetRefreshRate() const override