76 + auto client = new me::InprocessEGLClient(graphics_platform, surface_factory); 77 + client->start();
Looks like a leak - at the very least it needs a comment explaining why it doesn't leak.
80 + std::shared_ptr<msh::SurfaceFactory> const surface_factory; 81 + std::shared_ptr<mg::Platform> const graphics_platform;
should be const.
Actually, loose this class and rewrite main():
int main(int argc, char const* argv[]) try { mir::DefaultServerConfiguration config(argc, argv);
std::shared_ptr<me::InprocessEGLClient> client;
mir::run_mir(config, [&](mir::DisplayServer&) { client = std::make_shared<me::InprocessEGLClient>( config.the_surface_factory(), config.the_graphics_platform()); client->start(); }); } catch (std::exception const& error) ...
~~~~
516 === modified file 'include/server/mir/server_configuration.h' 657 === modified file 'src/server/display_server.cpp' 1020 === modified file 'tests/integration-tests/cucumber/test_session_management_context.cpp'
Unnecessary changes to these files. (None are are needed.)
375 + virtual ~InprocessEGLClient() {}
Why written explicitly? Why not "default"? Why virtual?
402 -
Unnecessary
414 - 415 +
Wrong
427 -/// All things Mir
It is a feeble doc comment, but please don't just remove it - replace it with something better!
637 - display->context = connection; 638 + display->context = static_cast<void*>(connection);
Unnecessary?
650 + display_server.cpp 651 run_mir.cpp 652 - display_server.cpp
Unnecessary.
« Back to merge proposal
76 + auto client = new me::InprocessEG LClient( graphics_ platform, surface_factory);
77 + client->start();
Looks like a leak - at the very least it needs a comment explaining why it doesn't leak.
80 + std::shared_ ptr<msh: :SurfaceFactory > const surface_factory; ptr<mg: :Platform> const graphics_platform;
81 + std::shared_
should be const.
Actually, loose this class and rewrite main():
int main(int argc, char const* argv[]) :DefaultServerC onfiguration config(argc, argv);
try
{
mir:
std: :shared_ ptr<me: :InprocessEGLCl ient> client;
mir: :run_mir( config, [&](mir: :DisplayServer& ) shared< me::InprocessEG LClient> (
config. the_surface_ factory( ),
config. the_graphics_ platform( ));
client- >start( );
{
client = std::make_
});
}
catch (std::exception const& error)
...
~~~~
516 === modified file 'include/ server/ mir/server_ configuration. h' display_ server. cpp' integration- tests/cucumber/ test_session_ management_ context. cpp'
657 === modified file 'src/server/
1020 === modified file 'tests/
Unnecessary changes to these files. (None are are needed.)
~~~~
375 + virtual ~InprocessEGLCl ient() {}
Why written explicitly? Why not "default"? Why virtual?
~~~~
402 -
Unnecessary
414 -
415 +
Wrong
~~~~
427 -/// All things Mir
It is a feeble doc comment, but please don't just remove it - replace it with something better!
~~~~
637 - display->context = connection; cast<void* >(connection) ;
638 + display->context = static_
Unnecessary?
~~~~
650 + display_server.cpp
651 run_mir.cpp
652 - display_server.cpp
Unnecessary.