~vanvugt/mir/nested-subpixel-arrangement

« back to all changes in this revision

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

  • Committer: Daniel van Vugt
  • Date: 2017-02-28 08:53:57 UTC
  • mfrom: (4041.1.15 development-branch)
  • Revision ID: daniel.van.vugt@canonical.com-20170228085357-tmgbgq5o4ecbxzkr
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
    std::shared_ptr<mg::Buffer> alloc_buffer(mg::BufferProperties const& properties) override
77
77
    {
78
 
        if (passthrough_candidate(properties.size, properties.usage))
79
 
            return std::make_shared<mgn::Buffer>(connection, properties);
80
 
        else
81
 
            return guest_allocator->alloc_buffer(properties);
 
78
        return guest_allocator->alloc_buffer(properties);
82
79
    }
83
80
 
84
81
    std::shared_ptr<mg::Buffer> alloc_buffer(