~vanvugt/mir/heresy

« back to all changes in this revision

Viewing changes to src/server/scene/threaded_snapshot_strategy.cpp

  • Committer: Daniel van Vugt
  • Date: 2015-06-03 07:35:16 UTC
  • mfrom: (2600.2.13 development-branch)
  • Revision ID: daniel.van.vugt@canonical.com-20150603073516-av54iqy9ngrkrf2t
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include "threaded_snapshot_strategy.h"
20
20
#include "pixel_buffer.h"
21
 
#include "mir/scene/surface_buffer_access.h"
 
21
#include "mir/compositor/buffer_stream.h"
22
22
#include "mir/thread_name.h"
23
23
 
24
24
#include <deque>
35
35
 
36
36
struct WorkItem
37
37
{
38
 
    std::shared_ptr<SurfaceBufferAccess> const stream;
 
38
    std::shared_ptr<compositor::BufferStream> const stream;
39
39
    ms::SnapshotCallback const snapshot_taken;
40
40
};
41
41
 
123
123
}
124
124
 
125
125
void ms::ThreadedSnapshotStrategy::take_snapshot_of(
126
 
    std::shared_ptr<SurfaceBufferAccess> const& surface_buffer_access,
 
126
    std::shared_ptr<compositor::BufferStream> const& surface_buffer_access,
127
127
    SnapshotCallback const& snapshot_taken)
128
128
{
129
129
    functor->schedule_snapshot(WorkItem{surface_buffer_access, snapshot_taken});