~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to src/server/compositor/buffer_stream_factory.h

  • Committer: Daniel van Vugt
  • Date: 2017-05-08 03:04:26 UTC
  • mfrom: (4164 development-branch)
  • mto: This revision was merged to the branch mainline in revision 4171.
  • Revision ID: daniel.van.vugt@canonical.com-20170508030426-wy8yiyggdu8ym3mr
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define MIR_COMPOSITOR_BUFFER_STREAM_FACTORY_H_
23
23
 
24
24
#include "mir/scene/buffer_stream_factory.h"
25
 
#include "mir/compositor/frame_dropping_policy_factory.h"
26
25
 
27
26
#include <memory>
28
27
 
38
37
class BufferStreamFactory : public scene::BufferStreamFactory
39
38
{
40
39
public:
41
 
    BufferStreamFactory(std::shared_ptr<FrameDroppingPolicyFactory> const& policy_factory);
 
40
    BufferStreamFactory();
42
41
 
43
42
    virtual ~BufferStreamFactory() {}
44
43
 
50
49
        graphics::BufferProperties const&) override;
51
50
    virtual std::shared_ptr<frontend::ClientBuffers> create_buffer_map(
52
51
        std::shared_ptr<frontend::BufferSink> const& sink) override;
53
 
 
54
 
private:
55
 
    std::shared_ptr<FrameDroppingPolicyFactory> const policy_factory;
56
52
};
57
53
 
58
54
}