\r
#include <boost/noncopyable.hpp>\r
\r
-#include <memory>\r
+#include <common/memory/safe_ptr.h>\r
\r
namespace caspar { namespace core {\r
+\r
+class ogl_device;\r
\r
class host_buffer : boost::noncopyable\r
{\r
\r
void bind();\r
void unbind();\r
- void unmap();\r
+\r
void map();\r
+ void unmap();\r
+ \r
+ void begin_read(size_t width, size_t height, unsigned int format);\r
+ bool ready() const;\r
+ void wait(ogl_device& ogl);\r
private:\r
friend class ogl_device;\r
host_buffer(size_t size, usage_t usage);\r
\r
struct implementation;\r
- std::shared_ptr<implementation> impl_;\r
+ safe_ptr<implementation> impl_;\r
};\r
\r
}}
\ No newline at end of file