forked from organicmaps/organicmaps
Adding exact density to render policy and resource manager params.
This commit is contained in:
parent
0cb481f7e4
commit
226de8c987
3 changed files with 10 additions and 0 deletions
|
@ -215,6 +215,7 @@ namespace graphics
|
|||
unsigned m_threadSlotsCount;
|
||||
|
||||
bool m_rgba4RenderBuffer;
|
||||
int m_exactDensityDPI;
|
||||
|
||||
Params();
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ RenderPolicy::RenderPolicy(Params const & p,
|
|||
: m_primaryRC(p.m_primaryRC),
|
||||
m_doForceUpdate(false),
|
||||
m_density(p.m_density),
|
||||
m_exactDensityDPI(p.m_exactDensityDPI),
|
||||
m_visualScale(graphics::visualScale(p.m_density)),
|
||||
m_skinName(p.m_skinName)
|
||||
{
|
||||
|
@ -208,6 +209,11 @@ graphics::EDensity RenderPolicy::Density() const
|
|||
return m_density;
|
||||
}
|
||||
|
||||
int RenderPolicy::DensityExactDPI() const
|
||||
{
|
||||
return m_exactDensityDPI;
|
||||
}
|
||||
|
||||
string const & RenderPolicy::SkinName() const
|
||||
{
|
||||
return m_skinName;
|
||||
|
|
|
@ -73,6 +73,7 @@ protected:
|
|||
bool m_doForceUpdate;
|
||||
m2::AnyRectD m_invalidRect;
|
||||
graphics::EDensity m_density;
|
||||
int m_exactDensityDPI;
|
||||
double m_visualScale;
|
||||
string m_skinName;
|
||||
anim::Controller * m_controller;
|
||||
|
@ -91,6 +92,7 @@ public:
|
|||
string m_skinName;
|
||||
size_t m_screenWidth;
|
||||
size_t m_screenHeight;
|
||||
int m_exactDensityDPI;
|
||||
};
|
||||
|
||||
/// constructor
|
||||
|
@ -148,6 +150,7 @@ public:
|
|||
double VisualScale() const;
|
||||
virtual size_t TileSize() const { return 256; }
|
||||
graphics::EDensity Density() const;
|
||||
int DensityExactDPI() const;
|
||||
string const & SkinName() const;
|
||||
|
||||
/// This function is used when we need to prevent race
|
||||
|
|
Loading…
Add table
Reference in a new issue