~dandrader/mir/cross-compile-parallel

« back to all changes in this revision

Viewing changes to examples/render_surfaces.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-09-26 01:19:16 UTC
  • mfrom: (1081.4.22 mir3)
  • Revision ID: tarmac-20130926011916-jmm6x87uckd04y8s
frontend, config: Mechanism for connecting via a socket pair.

Approved by PS Jenkins bot, Kevin DuBois, Alexandros Frantzis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "mir/compositor/default_display_buffer_compositor_factory.h"
20
20
#include "mir/compositor/display_buffer_compositor.h"
21
21
#include "mir/graphics/graphic_buffer_allocator.h"
22
 
#include "mir/frontend/communicator.h"
 
22
#include "mir/frontend/connector.h"
23
23
#include "mir/shell/surface_creation_parameters.h"
24
24
#include "mir/geometry/size.h"
25
25
#include "mir/geometry/rectangles.h"
266
266
 
267
267
    ///\internal [RenderSurfacesServerConfiguration_stubs_tag]
268
268
    // Stub out server connectivity.
269
 
    std::shared_ptr<mf::Communicator> the_communicator() override
 
269
    std::shared_ptr<mf::Connector> the_connector() override
270
270
    {
271
 
        struct NullCommunicator : public mf::Communicator
 
271
        struct NullConnector : public mf::Connector
272
272
        {
273
273
            void start() {}
274
274
            void stop() {}
 
275
            int client_socket_fd() const override { return 0; }
275
276
        };
276
277
 
277
 
        return std::make_shared<NullCommunicator>();
 
278
        return std::make_shared<NullConnector>();
278
279
    }
279
280
    ///\internal [RenderSurfacesServerConfiguration_stubs_tag]
280
281