~kdub/mir/fix-1301040

« back to all changes in this revision

Viewing changes to src/server/shell/organising_surface_factory.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:
42
42
 
43
43
std::shared_ptr<msh::Surface> msh::OrganisingSurfaceFactory::create_surface(
44
44
    Session* session,
45
 
    shell::SurfaceCreationParameters const& params,
46
 
    frontend::SurfaceId id,
47
 
    std::shared_ptr<mf::EventSink> const& sender)
 
45
    SurfaceCreationParameters const& params,
 
46
    std::shared_ptr<scene::SurfaceObserver> const& observer)
48
47
{
49
48
    auto placed_params = placement_strategy->place(*session, params);
50
49
 
51
 
    return surface_coordinator->add_surface(id, placed_params, sender);
 
50
    return surface_coordinator->add_surface(placed_params, observer);
52
51
}
53
52
 
54
53
void msh::OrganisingSurfaceFactory::destroy_surface(std::shared_ptr<Surface> const& surface)