~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "mir/compositor/display_buffer_compositor_factory.h"
23
23
#include "mir/compositor/display_buffer_compositor.h"
24
24
 
 
25
#include <thread>
 
26
 
25
27
namespace mir
26
28
{
27
29
namespace test
37
39
    {
38
40
        struct NullDisplayBufferCompositor : compositor::DisplayBufferCompositor
39
41
        {
40
 
            void composite(compositor::SceneElementSequence&&) {}
 
42
            void composite(compositor::SceneElementSequence&&)
 
43
            {
 
44
                // yield() is needed to ensure reasonable runtime under
 
45
                // valgrind for some tests
 
46
                std::this_thread::yield();
 
47
            }
41
48
        };
42
49
 
43
50
        auto raw = new NullDisplayBufferCompositor{};