~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to src/platforms/android/server/android_graphic_buffer_allocator.h

  • Committer: Kevin DuBois
  • Date: 2015-12-03 15:53:56 UTC
  • mfrom: (3103.19.36 egl-sync-object)
  • Revision ID: kevin.dubois@canonical.com-20151203155356-0vcgzf1ic3ozq2zs
android: use the EGL_fence_sync extensions to synchronize client software buffers.

fixes: lp: #1517205

Approved by: Alan Griffiths, Cemil Azizoglu, Andreas Pokorny

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
class GraphicAllocAdaptor;
41
41
class DeviceQuirks;
 
42
class CommandStreamSyncFactory;
42
43
 
43
44
class AndroidGraphicBufferAllocator: public GraphicBufferAllocator, public graphics::GraphicBufferAllocator
44
45
{
45
46
public:
46
 
    AndroidGraphicBufferAllocator(std::shared_ptr<DeviceQuirks> const& quirks);
 
47
    AndroidGraphicBufferAllocator(
 
48
        std::shared_ptr<CommandStreamSyncFactory> const& cmdstream_sync_factory,
 
49
        std::shared_ptr<DeviceQuirks> const& quirks);
47
50
 
48
51
    std::shared_ptr<graphics::Buffer> alloc_buffer(
49
52
        graphics::BufferProperties const& buffer_properties) override;
61
64
    const hw_module_t    *hw_module;
62
65
    std::shared_ptr<GraphicAllocAdaptor> alloc_device;
63
66
    std::shared_ptr<EGLExtensions> const egl_extensions;
 
67
    std::shared_ptr<CommandStreamSyncFactory> const cmdstream_sync_factory;
64
68
};
65
69
 
66
70
}