~vanvugt/mir/heresy

« back to all changes in this revision

Viewing changes to tests/integration-tests/graphics/android/test_client_render.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:
22
22
#include "src/platforms/android/server/buffer.h"
23
23
#include "mir/graphics/android/native_buffer.h"
24
24
#include "src/platforms/android/server/android_graphic_buffer_allocator.h"
 
25
#include "src/platforms/android/server/device_quirks.h"
25
26
 
26
27
#include "mir_test/cross_process_sync.h"
27
28
#include "mir_test/stub_server_tool.h"
187
188
{
188
189
    StubServerGenerator()
189
190
    {
190
 
        allocator = std::make_shared<mga::AndroidGraphicBufferAllocator>();
 
191
        auto quirks = std::make_shared<mga::DeviceQuirks>(mga::PropertiesOps{});
 
192
        allocator = std::make_shared<mga::AndroidGraphicBufferAllocator>(quirks);
191
193
        auto size = geom::Size{test_width, test_height};
192
194
        surface_pf = mir_pixel_format_abgr_8888;
193
195
        last_posted = allocator->alloc_buffer_platform(size, surface_pf, mga::BufferUsage::use_hardware);