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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'drape/oglcontextfactory.hpp')
-rw-r--r--drape/oglcontextfactory.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/drape/oglcontextfactory.hpp b/drape/oglcontextfactory.hpp
index c015781843..f3cb2fe366 100644
--- a/drape/oglcontextfactory.hpp
+++ b/drape/oglcontextfactory.hpp
@@ -18,6 +18,7 @@ public:
virtual OGLContext * getResourcesUploadContext() = 0;
virtual bool isDrawContextCreated() const { return false; }
virtual bool isUploadContextCreated() const { return false; }
+ virtual void waitForInitialization() {}
};
class ThreadSafeFactory : public OGLContextFactory
@@ -25,8 +26,8 @@ class ThreadSafeFactory : public OGLContextFactory
public:
ThreadSafeFactory(OGLContextFactory * factory, bool enableSharing = true);
~ThreadSafeFactory();
- virtual OGLContext * getDrawContext();
- virtual OGLContext * getResourcesUploadContext();
+ OGLContext * getDrawContext() override;
+ OGLContext * getResourcesUploadContext() override;
template<typename T>
T * CastFactory()
@@ -35,6 +36,8 @@ public:
return static_cast<T *>(m_factory);
}
+ void waitForInitialization() override;
+
protected:
typedef function<OGLContext * ()> TCreateCtxFn;
typedef function<bool()> TIsSeparateCreatedFn;