~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to tests/mir_test_framework/testing_client_options.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-11-20 16:41:15 UTC
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: package-import@ubuntu.com-20141120164115-a3j4vq6cq2u78m47
Tags: upstream-0.9.0+15.04.20141120.1
ImportĀ upstreamĀ versionĀ 0.9.0+15.04.20141120.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
{
36
36
class StubClientBuffer : public mcl::ClientBuffer
37
37
{
38
 
    std::shared_ptr<mcl::MemoryRegion> secure_for_cpu_write()
 
38
    std::shared_ptr<mcl::MemoryRegion> secure_for_cpu_write() override
39
39
    {
40
40
        return nullptr;
41
41
    }
42
42
 
43
 
    geom::Size size() const
 
43
    geom::Size size() const override
44
44
    {
45
45
        return geom::Size{};
46
46
    }
47
47
 
48
 
    geom::Stride stride() const
 
48
    geom::Stride stride() const override
49
49
    {
50
50
        return geom::Stride{};
51
51
    }
52
52
 
53
 
    MirPixelFormat pixel_format() const
 
53
    MirPixelFormat pixel_format() const override
54
54
    {
55
55
        return mir_pixel_format_abgr_8888;
56
56
    }
57
57
 
58
 
    uint32_t age() const
 
58
    uint32_t age() const override
59
59
    {
60
60
        return 0;
61
61
    }
62
 
    void increment_age()
63
 
    {
64
 
    }
65
 
    void mark_as_submitted()
66
 
    {
67
 
    }
68
 
    std::shared_ptr<mir::graphics::NativeBuffer> native_buffer_handle() const
 
62
    void increment_age() override
 
63
    {
 
64
    }
 
65
    void mark_as_submitted() override
 
66
    {
 
67
    }
 
68
    std::shared_ptr<mir::graphics::NativeBuffer> native_buffer_handle() const override
69
69
    {
70
70
        return nullptr;
71
71
    }
72
72
    void update_from(MirBufferPackage const&) override
73
73
    {
74
74
    }
 
75
    void fill_update_msg(MirBufferPackage&) override
 
76
    {
 
77
    }
75
78
};
76
79
 
77
80
struct StubClientBufferFactory : public mcl::ClientBufferFactory