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

« back to all changes in this revision

Viewing changes to include/platform/mir/graphics/native_platform.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-10-10 14:01:26 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20141010140126-n1czko8na1kuz4ll
Tags: upstream-0.8.0+14.10.20141010
ImportĀ upstreamĀ versionĀ 0.8.0+14.10.20141010

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define MIR_GRAPHICS_NATIVE_PLATFORM_H_
20
20
 
21
21
#include "mir/graphics/platform.h"
 
22
#include "mir/graphics/platform_ipc_operations.h"
22
23
#include <memory>
23
24
#include <functional>
24
25
 
34
35
class BufferInitializer;
35
36
class PlatformIPCPackage;
36
37
class InternalClient;
37
 
class BufferIPCPacker;
 
38
class BufferIpcMessage;
38
39
class Buffer;
 
40
class BufferWriter;
39
41
class DisplayReport;
40
42
class NestedContext;
41
43
 
49
51
    virtual std::shared_ptr<GraphicBufferAllocator> create_buffer_allocator(
50
52
        std::shared_ptr<BufferInitializer> const& buffer_initializer) = 0;
51
53
 
52
 
    virtual std::shared_ptr<PlatformIPCPackage> get_ipc_package() = 0;
 
54
    virtual std::shared_ptr<PlatformIPCPackage> connection_ipc_package() = 0;
53
55
 
54
56
    virtual std::shared_ptr<InternalClient> create_internal_client() = 0;
55
57
 
56
58
    virtual void fill_buffer_package(
57
 
        BufferIPCPacker* packer,
 
59
        BufferIpcMessage* message,
58
60
        Buffer const* buffer,
59
61
        BufferIpcMsgType msg_type) const = 0;
60
62
 
 
63
    virtual std::shared_ptr<BufferWriter> make_buffer_writer() = 0;
 
64
 
61
65
    virtual ~NativePlatform() = default;
62
66
    NativePlatform(NativePlatform const&) = delete;
63
67
    NativePlatform& operator=(NativePlatform const&) = delete;