86 static double GetMaxScaleFactor();
92 static double GetMinScaleFactor();
97 static double GetDefaultScaleFactor();
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
virtual bool GetCanvasIsAutoScaled() const =0
Is the current value auto scaled, or is it user-set in the config.
virtual void SetDpiConfig(bool aAuto, double aValue)=0
Set the common DPI config in a given config object.
virtual double GetContentScaleFactor() const =0
Get the content scale factor, which may be different from the scale factor on some platforms.
DPI_SCALING()
Construct a DPI scale provider.
virtual double GetScaleFactor() const =0
Get the DPI scale from all known sources in order: