diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-10-18 18:34:27 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:46:06 +0300 |
commit | 2707f783d3092ed8d9f27d4bb3986809c36a335d (patch) | |
tree | 43630930d9a177f1faf1a26d925a5f882d7fe545 /platform | |
parent | 73873c693ad5dbcdfc440ce631b831a5e6837e10 (diff) |
added Platform::DoSupportRotation and using it in BasicTilingRenderPolicy constructor.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform.hpp | 2 | ||||
-rw-r--r-- | platform/platform_android.cpp | 5 | ||||
-rw-r--r-- | platform/platform_ios.mm | 5 | ||||
-rw-r--r-- | platform/platform_linux.cpp | 5 | ||||
-rw-r--r-- | platform/platform_qt.cpp | 5 |
5 files changed, 22 insertions, 0 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp index 516ff3f959..2cd0eeac99 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -125,6 +125,8 @@ public: inline bool IsPro() const { return m_isPro; } + bool DoSupportRotation() const; + /// @return url for clients to download maps //@{ string MetaServerUrl() const; diff --git a/platform/platform_android.cpp b/platform/platform_android.cpp index d905d53e37..16e5ad882d 100644 --- a/platform/platform_android.cpp +++ b/platform/platform_android.cpp @@ -127,6 +127,11 @@ namespace }; } +bool Platform::DoSupportRotation() const +{ + return IsPro(); +} + void Platform::RunAsync(TFunctor const & fn, Priority p) { UNUSED_VALUE(p); diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm index c6824f29d0..b4d270e15a 100644 --- a/platform/platform_ios.mm +++ b/platform/platform_ios.mm @@ -172,6 +172,11 @@ string Platform::UniqueClientId() const return HashUniqueID(GetMacAddress() + GetDeviceUid()); } +bool Platform::DoSupportRotation() const +{ + return false; +} + static void PerformImpl(void * obj) { Platform::TFunctor * f = reinterpret_cast<Platform::TFunctor *>(obj); diff --git a/platform/platform_linux.cpp b/platform/platform_linux.cpp index b3c20ab0ad..c12ca901b5 100644 --- a/platform/platform_linux.cpp +++ b/platform/platform_linux.cpp @@ -59,6 +59,11 @@ string Platform::UniqueClientId() const return "@TODO"; } +bool Platform::DoSupportRotation() const +{ + return false; +} + void Platform::RunOnGuiThread(TFunctor const & fn) { /// @todo diff --git a/platform/platform_qt.cpp b/platform/platform_qt.cpp index 5913996265..c0265141b7 100644 --- a/platform/platform_qt.cpp +++ b/platform/platform_qt.cpp @@ -58,6 +58,11 @@ int Platform::VideoMemoryLimit() const return 20 * 1024 * 1024; } +bool Platform::DoSupportRotation() const +{ + return IsPro(); +} + /////////////////////////////////////////////////////////////////////////////// extern Platform & GetPlatform() { |