~cjwatson/mir/arm64-no-valgrind

« back to all changes in this revision

Viewing changes to include/server/mir/logging/connector_report.h

  • Committer: Tarmac
  • Author(s): Alan Griffiths, Daniel van Vugt, Kevin Gunn, Daniel d'Andrada, Kevin DuBois, Robert Ancell, Alexandros Frantzis
  • Date: 2013-10-03 03:48:54 UTC
  • mfrom: (1081.3.23 development-branch)
  • Revision ID: tarmac-20131003034854-xt39hgpdwywgkdox
* bump deb changelog to 0.0.13 and libmirserver5.
lp:~kgunn72/mir/bump-libmirserver5-take2

* graphics: android: disable vsync notifications when screen is off as per hwc specs. rename unblank_or_blank_display to apply_display_state() to remove ambiguity about what is being done.
fixes: lp1233870. Fixes: https://bugs.launchpad.net/bugs/1233870.
branch lp:~kdub/mir/deactive-notifications-when-display-off

* Simplify {Default,Basic}DisplayBufferCompositor classes into one.
branch lp:~vanvugt/mir/simplify-DisplayBufferCompositors

* Make cross-compile-chroot.sh build in parallel when suitable
branch lp:~dandrader/mir/cross-compile-parallel

* Fix race in connection failures. Fixes: https://bugs.launchpad.net/bugs/1201436.
branch lp:~alan-griffiths/mir/fix-1201436
Bug #1201436: Intermittent hang in ClientPidTestFixture.authorizer_may_prevent_connection_of_clients test

* Privatize surface_data.h; not required in any public APIs.
Fixes: https://bugs.launchpad.net/bugs/1223393.
branch lp:~vanvugt/mir/privatize-SurfaceData

* client: Clean up client side error handling and suicide if connection fails
branch lp:~alan-griffiths/mir/client-dies-without-server

* frontend, logging: Provide reporting from frontend::Connector.
branch lp:~alan-griffiths/mir/frontend-ConnectorReport-enablement

* Properly track buffers per-surface (not per session). Failure to do so was
causing premature buffer release and re-use in cases with multiple surfaces
per client/session. In XMir this was seen as out of order, glitchy and slow
frames when using multiple monitors (LP: #1216472). Fixes: https://bugs.launchpad.net/bugs/1216472.
branch lp:~afrantzis/mir/fix-out-of-order-buffers-1216472.

Approved by PS Jenkins bot, Robert Ancell.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2013 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3,
 
6
 * as published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authored by: Alan Griffiths <alan@octopull.co.uk>
 
17
 */
 
18
 
 
19
 
 
20
#ifndef MIR_LOGGING_CONNECTOR_REPORT_H_
 
21
#define MIR_LOGGING_CONNECTOR_REPORT_H_
 
22
 
 
23
#include "mir/frontend/connector_report.h"
 
24
 
 
25
#include <memory>
 
26
 
 
27
namespace mir
 
28
{
 
29
namespace logging
 
30
{
 
31
class Logger;
 
32
 
 
33
class ConnectorReport : public frontend::ConnectorReport
 
34
{
 
35
public:
 
36
    ConnectorReport(std::shared_ptr<Logger> const& log);
 
37
 
 
38
    void thread_start() override;
 
39
    void thread_end() override;
 
40
    void starting_threads(int count) override;
 
41
    void stopping_threads(int count) override;
 
42
 
 
43
    void creating_session_for(int socket_handle) override;
 
44
    void creating_socket_pair(int server_handle, int client_handle) override;
 
45
 
 
46
    void listening_on(std::string const& endpoint) override;
 
47
 
 
48
    void error(std::exception const& error) override;
 
49
 
 
50
private:
 
51
    std::shared_ptr<Logger> const logger;
 
52
};
 
53
}
 
54
}
 
55
 
 
56
#endif /* MIR_LOGGING_CONNECTOR_REPORT_H_ */