~afrantzis/unity-system-compositor/no-external-spinner-zombie-processes-sigchld

Viewing all changes in revision 219.

  • Committer: Tarmac
  • Author(s): Alexandros Frantzis
  • Date: 2015-06-11 06:43:20 UTC
  • mfrom: (218.1.2 fix-1463855-usc-spinner)
  • Revision ID: tarmac-20150611064320-nd3o63t5u6s7jhn1
spinner: Fix failure to run on Android

This MP:

1. Passes surface dimensions in addition to the output_id when placing on a specific output. This is needed as a workaround for our Android backend, which unfortunately uses the value of mir_display_output_invalid_id (0) as a valid output id!

2. Sets swapinterval correctly per surface.

3. Uses eglQuerySurface to get the surface size (instead of mir_buffer_stream_get_current_buffer() which returns a platform dependent structure).

4. Uses a dummy pbuffer surface to emulate a surfaceless context on platforms that don't support it (e.g. Android). Fixes: https://bugs.launchpad.net/bugs/1463855.

Approved by Chris Halse Rogers, Alan Griffiths, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: