~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to src/server/graphics/nested/mir_client_host_connection.h

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "mir/shell/host_lifecycle_event_listener.h"
24
24
 
25
25
#include <string>
 
26
#include <mutex>
26
27
 
27
28
struct MirConnection;
28
29
 
44
45
    std::vector<int> platform_fd_items() override;
45
46
    EGLNativeDisplayType egl_native_display() override;
46
47
    std::shared_ptr<MirDisplayConfiguration> create_display_config() override;
47
 
    std::shared_ptr<HostSurface> create_surface(MirSurfaceParameters const&) override;
 
48
    std::shared_ptr<HostSurface> create_surface(
 
49
        int width, int height, MirPixelFormat pf, char const* name,
 
50
        MirBufferUsage usage, uint32_t output_id) override;
48
51
    void set_display_config_change_callback(std::function<void()> const& cb) override;
49
52
    void apply_display_config(MirDisplayConfiguration&) override;
50
53
 
51
 
    void drm_set_gbm_device(struct gbm_device* dev) override;
 
54
    void set_cursor_image(CursorImage const& image) override;
 
55
    void hide_cursor() override;
 
56
 
52
57
    virtual PlatformOperationMessage platform_operation(
53
58
        unsigned int op, PlatformOperationMessage const& request) override;
54
59
 
55
60
private:
 
61
    std::mutex surfaces_mutex;
 
62
    
56
63
    MirConnection* const mir_connection;
57
64
    std::function<void()> conf_change_callback;
58
65
    std::shared_ptr<msh::HostLifecycleEventListener> const host_lifecycle_event_listener;
 
66
 
 
67
    std::vector<HostSurface*> surfaces;
59
68
};
60
69
 
61
70
}