diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-11-27 16:34:52 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-11-29 15:48:51 +0100 |
commit | 335f04f7e13422ce53cbbf13cebb8283149faba8 (patch) | |
tree | 4542c71910cea2f626ac37325a32f9432f1d908b /platform/default/mbgl/gl/headless_display.hpp | |
parent | 772b9090626731101b82eccacbc3adaa71cc428c (diff) | |
download | qtlocation-mapboxgl-335f04f7e13422ce53cbbf13cebb8283149faba8.tar.gz |
[core] fold HeadlessDisplay into the headless RenderBackend implementation
Diffstat (limited to 'platform/default/mbgl/gl/headless_display.hpp')
-rw-r--r-- | platform/default/mbgl/gl/headless_display.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/platform/default/mbgl/gl/headless_display.hpp b/platform/default/mbgl/gl/headless_display.hpp deleted file mode 100644 index 8c294655e5..0000000000 --- a/platform/default/mbgl/gl/headless_display.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <memory> - -namespace mbgl { - -class HeadlessDisplay { -public: - static std::shared_ptr<HeadlessDisplay> create() { - static std::weak_ptr<HeadlessDisplay> instance; - - auto shared = instance.lock(); - - if (!shared) { - instance = shared = std::shared_ptr<HeadlessDisplay>(new HeadlessDisplay()); - } - - return shared; - } - - - ~HeadlessDisplay(); - - template <typename DisplayAttribute> - DisplayAttribute attribute() const; - -private: - HeadlessDisplay(); - - class Impl; - std::unique_ptr<Impl> impl; -}; - -} // namespace mbgl |