5#include "flutter/shell/platform/android/android_display.h"
10 std::shared_ptr<PlatformViewAndroidJNI> jni_facade)
12 jni_facade->GetDisplayRefreshRate(),
13 jni_facade->GetDisplayWidth(),
14 jni_facade->GetDisplayHeight(),
15 jni_facade->GetDisplayDensity()),
16 jni_facade_(
std::move(jni_facade)) {}
19 return jni_facade_->GetDisplayRefreshRate();
23 return jni_facade_->GetDisplayWidth();
27 return jni_facade_->GetDisplayHeight();
31 return jni_facade_->GetDisplayDensity();
AndroidDisplay(std::shared_ptr< PlatformViewAndroidJNI > jni_facade)
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