summaryrefslogtreecommitdiff
path: root/src/mbgl/util/gl_object_store.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/gl_object_store.hpp')
-rw-r--r--src/mbgl/util/gl_object_store.hpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/mbgl/util/gl_object_store.hpp b/src/mbgl/util/gl_object_store.hpp
deleted file mode 100644
index 775d4d1d01..0000000000
--- a/src/mbgl/util/gl_object_store.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef MBGL_MAP_UTIL_GL_OBJECT_STORE
-#define MBGL_MAP_UTIL_GL_OBJECT_STORE
-
-#include <mbgl/platform/gl.hpp>
-#include <mbgl/util/noncopyable.hpp>
-
-#include <cstdint>
-#include <vector>
-
-namespace mbgl {
-namespace util {
-
-class GLObjectStore : private util::noncopyable {
-public:
- GLObjectStore() = default;
-
- // Mark OpenGL objects for deletion
- void abandonVAO(GLuint vao);
- void abandonBuffer(GLuint buffer);
- void abandonTexture(GLuint texture);
-
- // Actually remove the objects we marked as abandoned with the above methods.
- // Only call this while the OpenGL context is exclusive to this thread.
- void performCleanup();
-
-private:
- std::vector<GLuint> abandonedVAOs;
- std::vector<GLuint> abandonedBuffers;
- std::vector<GLuint> abandonedTextures;
-};
-
-} // namespace util
-} // namespace mbgl
-
-#endif