~vanvugt/mir/fix-1207145

« back to all changes in this revision

Viewing changes to src/server/graphics/nested/nested_platform.cpp

  • Committer: Tarmac
  • Author(s): Eleni Maria Stea
  • Date: 2013-07-31 16:11:56 UTC
  • mfrom: (899.1.8 plat_nested)
  • Revision ID: tarmac-20130731161156-1f0pqokzeejuzt8s
stub Platform functions to NestedPlatform
replaced create_nested_platform with a call to the NestedPlatform constructor in the default_server_configuration.cpp.

Approved by Alexandros Frantzis, PS Jenkins bot, Alan Griffiths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Eleni Maria Stea <elenimaria.stea@canonical.com>
17
17
 */
18
18
 
19
 
#include "nested_platform.h"
 
19
#include "mir/graphics/nested/nested_platform.h"
20
20
 
21
21
#include <boost/throw_exception.hpp>
22
22
#include <stdexcept>
24
24
namespace mg = mir::graphics;
25
25
namespace mgn = mir::graphics::nested;
26
26
namespace mo = mir::options;
27
 
 
28
 
std::shared_ptr<mg::Platform> mg::create_nested_platform(std::shared_ptr<mo::Option> const& /*options*/, std::shared_ptr<mg::NativePlatform> const& /*native_platform*/)
29
 
{
30
 
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir method create_nested_platform is not implemented yet!"));
31
 
    return 0;
 
27
namespace mc = mir::compositor;
 
28
 
 
29
mgn::NestedPlatform::NestedPlatform(std::shared_ptr<mg::DisplayReport> const& display_report,
 
30
                                    std::shared_ptr<mg::NativePlatform> const& native_platform) :
 
31
    native_platform{native_platform},
 
32
    display_report{display_report}
 
33
{
 
34
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir NestedPlatform constructor is not implemented yet!"));
 
35
}
 
36
 
 
37
std::shared_ptr<mc::GraphicBufferAllocator> mgn::NestedPlatform::create_buffer_allocator(
 
38
        std::shared_ptr<mg::BufferInitializer> const& /*buffer_initializer*/)
 
39
{
 
40
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir mgn::NestedPlatform::create_buffer_allocator is not implemented yet!"));
 
41
    return 0;
 
42
}
 
43
 
 
44
std::shared_ptr<mg::Display> mgn::NestedPlatform::create_display(std::shared_ptr<mg::DisplayConfigurationPolicy> const& /*initial_conf_policy*/)
 
45
{
 
46
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir mgn::NestedPlatform::create_display is not implemented yet!"));
 
47
    return 0;
 
48
}
 
49
 
 
50
std::shared_ptr<mg::PlatformIPCPackage> mgn::NestedPlatform::get_ipc_package()
 
51
{
 
52
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir mgn::NestedPlatform::get_ipc_package is not implemented yet!"));
 
53
    return 0;
 
54
}
 
55
 
 
56
std::shared_ptr<mg::InternalClient> mgn::NestedPlatform::create_internal_client()
 
57
{
 
58
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir mgn::NestedPlatform::create_internal_client is not implemented yet!"));
 
59
    return 0;
 
60
}
 
61
 
 
62
 
 
63
void mgn::NestedPlatform::fill_ipc_package(std::shared_ptr<compositor::BufferIPCPacker> const& /*packer*/,
 
64
                                        std::shared_ptr<Buffer> const& /*buffer*/) const
 
65
{
 
66
    BOOST_THROW_EXCEPTION(std::runtime_error("Mir method mgn::NestedPlatform::fill_ipc_package is not implemented yet!"));
32
67
}