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

« back to all changes in this revision

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

  • 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:
45
45
 
46
46
 
47
47
std::shared_ptr<mc::BufferStream> mc::BufferStreamFactory::create_buffer_stream(
48
 
    mg::BufferProperties const& buffer_properties)
 
48
    int nbuffers, mg::BufferProperties const& buffer_properties)
49
49
{
50
 
    // Note: Framedropping requires a minimum 3 buffers
51
 
    auto switching_bundle = std::make_shared<mc::BufferQueue>(3, gralloc, buffer_properties, *policy_factory);
 
50
    auto switching_bundle = std::make_shared<mc::BufferQueue>(
 
51
        nbuffers, gralloc, buffer_properties, *policy_factory);
52
52
    return std::make_shared<mc::BufferStreamSurfaces>(switching_bundle);
53
53
}