~mir-team/mir/set-state-remove-mir-wait

« back to all changes in this revision

Viewing changes to src/platforms/android/server/server_render_window.cpp

  • Committer: Alan Griffiths
  • Author(s): Kevin DuBois
  • Date: 2017-01-12 17:45:36 UTC
  • mfrom: (3926.1.2 mir2)
  • Revision ID: alan@octopull.co.uk-20170112174536-ssuwg6mzbefsuumx
android-egl: change the function to get an ANativeWindow from accepting a MirBufferStream to using MirRenderSurface. Also plumb through the ANativeWindow::perform hook for SET_BUFFERS_DIMENSIONS, which is how the hybris driver can resize when MirRenderSurface has a size change.

Checked with the yet-unproposed mir plugin for hybris and mir_demo_client_egldiamond

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    format = request_format;
72
72
}
73
73
 
 
74
void mga::ServerRenderWindow::dispatch_driver_request_buffer_size(geometry::Size)
 
75
{
 
76
}
 
77
 
74
78
int mga::ServerRenderWindow::driver_requests_info(int key) const
75
79
{
76
80
    geom::Size size;