17#ifndef MIROIL_GLBUFFER_H
18#define MIROIL_GLBUFFER_H
21#include <mir/version.h>
26namespace mir {
namespace graphics {
class Buffer; }}
35 explicit GLBuffer(std::shared_ptr<mir::graphics::Buffer>
const& buffer);
37 operator bool()
const;
42 void reset(std::shared_ptr<mir::graphics::Buffer>
const& buffer);
44#if MIR_SERVER_VERSION < MIR_VERSION_NUMBER(2, 3, 0)
52 std::shared_ptr<mir::graphics::Buffer> wrapped;
54#if MIR_SERVER_VERSION < MIR_VERSION_NUMBER(2, 3, 0)
55 bool m_isOldTex =
false;
56 bool m_inited =
false;
Definition: mirbuffer.h:31
bool has_alpha_channel() const
mir::geometry::Size size() const
void reset(std::shared_ptr< mir::graphics::Buffer > const &buffer)
GLBuffer(std::shared_ptr< mir::graphics::Buffer > const &buffer)
Definition: splash_session.h:22
Definition: compositor.h:21