Welcome to mirror list, hosted at ThFree Co, Russian Federation.

support_manager.hpp « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ec45097d841b4e9f96d1e1e8e9948b3cef51c63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "std/noncopyable.hpp"

namespace dp
{

class SupportManager : public noncopyable
{
public:
  static SupportManager & Instance();

  // Initialization must be called only when OpenGL context is created.
  void Init();

  bool IsSamsungGoogleNexus() const;
  bool IsAdreno200Device() const;
  bool IsTegraDevice() const;

private:
  SupportManager() = default;
  ~SupportManager() = default;

  bool m_isSamsungGoogleNexus = false;
  bool m_isAdreno200 = false;
  bool m_isTegra = false;
};

} // namespace dp