~kdub/+junk/spike-two

« back to all changes in this revision

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

  • Committer: Kevin DuBois
  • Date: 2016-09-29 12:32:15 UTC
  • Revision ID: kevin.dubois@canonical.com-20160929123215-vhto5hw51ykb1xf0
minor cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
 
484
484
struct Chain : mgn::HostChain
485
485
{
486
 
    MirConnection* con;
487
 
    Chain(MirConnection* con) : con(con),
488
 
        chain(mir_connection_create_presentation_chain_sync(con))
 
486
    Chain(MirConnection* connection) :
 
487
        chain(mir_connection_create_presentation_chain_sync(connection))
489
488
    {
490
489
    }
491
490
    ~Chain()
576
575
    static void buffer_available(MirBuffer* buffer, void* context)
577
576
    {
578
577
        auto host_buffer = static_cast<HostBuffer*>(context);
579
 
        host_buffer->avail(buffer);
 
578
        host_buffer->available(buffer);
580
579
    }
581
580
 
582
 
    void avail(MirBuffer* buffer)
 
581
    void available(MirBuffer* buffer)
583
582
    {
584
583
        {
585
584
            std::unique_lock<std::mutex> lk(mut);