~robertcarr/mir/send-clients-input

« back to all changes in this revision

Viewing changes to src/server_configuration.cpp

  • Committer: Alan Griffiths
  • Date: 2012-09-25 09:01:03 UTC
  • mfrom: (134.9.91 android-client-buffer)
  • Revision ID: alan@octopull.co.uk-20120925090103-sgzbgx01lzfpaua1
client: android client buffer

This reconciles lp:~kdub/mir/android-client-buffer/ with the changes that have happened on trunk today.

a few points moved PixelFormat into geometry from compositor, and use mir/geometry on the client side as well. The concepts of dimensions and pixelformats are useful on the client and server side. (caused a bit of code churn)

this mp does not connect MirMemoryRegion into mir::client::MemoryRegion. (future mp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
    geom::Stride stride() const { return geom::Stride(); }
58
58
 
59
 
    mc::PixelFormat pixel_format() const { return mc::PixelFormat(); }
 
59
    geom::PixelFormat pixel_format() const { return geom::PixelFormat(); }
60
60
 
61
61
    std::shared_ptr<mc::BufferIPCPackage> get_ipc_package() const { return std::make_shared<mc::BufferIPCPackage>(); }
62
62
 
68
68
class StubGraphicBufferAllocator : public mc::GraphicBufferAllocator
69
69
{
70
70
 public:
71
 
    std::unique_ptr<mc::Buffer> alloc_buffer(geom::Size, mc::PixelFormat)
 
71
    std::unique_ptr<mc::Buffer> alloc_buffer(geom::Size, geom::PixelFormat)
72
72
    {
73
73
        return std::unique_ptr<mc::Buffer>(new StubBuffer());
74
74
    }