~vanvugt/mir/revert-r2288

« back to all changes in this revision

Viewing changes to src/platforms/mesa/client/client_platform.h

client: Add set_gbm_device platform operation.

Approved by PS Jenkins bot, Robert Carr, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "mir/client_platform.h"
22
22
 
 
23
struct gbm_device;
 
24
 
23
25
namespace mir
24
26
{
25
27
namespace client
41
43
 
42
44
    MirPlatformType platform_type() const override;
43
45
    void populate(MirPlatformPackage& package) const override;
 
46
    MirPlatformMessage* platform_operation(MirPlatformMessage const* request) override;
44
47
    std::shared_ptr<ClientBufferFactory> create_buffer_factory() override;
45
48
    std::shared_ptr<EGLNativeWindowType> create_egl_native_window(EGLNativeSurface *surface) override;
46
49
    std::shared_ptr<EGLNativeDisplayType> create_egl_native_display() override;
50
53
    ClientContext* const context;
51
54
    std::shared_ptr<BufferFileOps> const buffer_file_ops;
52
55
    EGLNativeDisplayContainer& display_container;
 
56
    gbm_device* gbm_dev;
53
57
};
54
58
 
55
59
}