~vanvugt/mir/double

« back to all changes in this revision

Viewing changes to tests/include/mir_test_doubles/null_display.h

  • Committer: Daniel van Vugt
  • Date: 2014-11-05 03:29:21 UTC
  • mfrom: (1608.120.275 development-branch)
  • Revision ID: daniel.van.vugt@canonical.com-20141105032921-60gro6zeb9tu70ac
MergeĀ latestĀ development-branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
class NullDisplay : public graphics::Display
35
35
{
36
36
 public:
37
 
    void for_each_display_buffer(std::function<void(graphics::DisplayBuffer&)> const&)
 
37
    void for_each_display_buffer(std::function<void(graphics::DisplayBuffer&)> const&) override
38
38
    {
39
39
        /* yield() is needed to ensure reasonable runtime under valgrind for some tests */
40
40
        std::this_thread::yield();
45
45
            new NullDisplayConfiguration
46
46
        );
47
47
    }
48
 
    void configure(graphics::DisplayConfiguration const&) {}
 
48
    void configure(graphics::DisplayConfiguration const&)  override{}
49
49
    void register_configuration_change_handler(
50
50
        graphics::EventHandlerRegister&,
51
51
        graphics::DisplayConfigurationChangeHandler const&) override
56
56
                                        graphics::DisplayResumeHandler const&) override
57
57
    {
58
58
    }
59
 
    void pause() {}
60
 
    void resume() {}
61
 
    std::shared_ptr<graphics::Cursor> create_hardware_cursor(std::shared_ptr<graphics::CursorImage> const& /* initial_image */)
 
59
    void pause() override{}
 
60
    void resume() override {}
 
61
    std::shared_ptr<graphics::Cursor> create_hardware_cursor(std::shared_ptr<graphics::CursorImage> const& /* initial_image */) override
62
62
    {
63
63
         return {}; 
64
64
    }
65
 
    std::unique_ptr<graphics::GLContext> create_gl_context()
 
65
    std::unique_ptr<graphics::GLContext> create_gl_context() override
66
66
    {
67
67
        return std::unique_ptr<NullGLContext>{new NullGLContext()};
68
68
    }