diff options
Diffstat (limited to 'src/mbgl/gl/texture_pool.hpp')
-rw-r--r-- | src/mbgl/gl/texture_pool.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/mbgl/gl/texture_pool.hpp b/src/mbgl/gl/texture_pool.hpp deleted file mode 100644 index 1cdcdf220c..0000000000 --- a/src/mbgl/gl/texture_pool.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include <mbgl/util/noncopyable.hpp> -#include <mbgl/gl/gl.hpp> -#include <mbgl/gl/object_store.hpp> - -#include <unique_resource.hpp> - -#include <memory> - -namespace mbgl { -namespace gl { - -class TexturePool; - -struct TextureReleaser { - TexturePool* pool; - void operator()(GLuint) const; -}; - -using PooledTexture = std_experimental::unique_resource<GLuint, TextureReleaser>; - -class TexturePool : private util::noncopyable { -public: - TexturePool(); - ~TexturePool(); - - PooledTexture acquireTexture(gl::ObjectStore&); - -private: - friend TextureReleaser; - - class Impl; - const std::unique_ptr<Impl> impl; -}; - -} // namespace gl -} // namespace mbgl |