~kdub/mir/fix-1301040

« back to all changes in this revision

Viewing changes to examples/render_surfaces.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2014-04-01 17:40:49 UTC
  • mfrom: (1513.3.10 mir1)
  • Revision ID: tarmac-20140401174049-vj1jmakptw9v31qg
scene: Simplify BasicSurface creation by separating out an initial cut of SurfaceObserver.

Approved by Andreas Pokorny, Alexandros Frantzis, Gerry Boland, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
        for (auto& m : moveables)
467
467
        {
468
468
            auto const s = surface_coordinator->add_surface(
469
 
                    mf::SurfaceId(),
470
469
                    msh::a_surface().of_size(surface_size)
471
470
                                   .of_pixel_format(surface_pf)
472
471
                                   .of_buffer_usage(mg::BufferUsage::hardware),