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

« back to all changes in this revision

Viewing changes to src/client/client_buffer_stream_factory.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:
21
21
 
22
22
#include "mir_protobuf.pb.h"
23
23
 
 
24
#include "mir_toolkit/client_types.h"
 
25
 
24
26
#include <memory>
25
27
 
26
28
namespace mir
28
30
namespace client
29
31
{
30
32
class ClientBufferStream;
 
33
class BufferStream;
31
34
class ClientBufferStreamFactory
32
35
{
33
36
public:
34
37
    virtual std::shared_ptr<ClientBufferStream> make_consumer_stream(protobuf::DisplayServer& server,
35
 
       protobuf::BufferStream const& protobuf_bs) = 0;
 
38
       protobuf::BufferStream const& protobuf_bs, std::string const& surface_name) = 0;
36
39
    virtual std::shared_ptr<ClientBufferStream> make_producer_stream(protobuf::DisplayServer& server,
37
 
       protobuf::BufferStream const& protobuf_bs) = 0;
 
40
       protobuf::BufferStream const& protobuf_bs, std::string const& surface_name) = 0;
 
41
 
 
42
    // For creating buffer stream owned by client.
 
43
    virtual ClientBufferStream* make_producer_stream(protobuf::DisplayServer& server,
 
44
       protobuf::BufferStreamParameters const& params,
 
45
       mir_buffer_stream_callback callback, void* context) = 0;
38
46
 
39
47
protected:
40
48
    ClientBufferStreamFactory() = default;