~kdub/mir/fix-1615703

Viewing all changes in revision 3660.

platforms: remove ifdefs around mg::NativeBuffer to make it simply a forward-declared class for server code. Platforms can define what mg::NativeBuffer is to whatever works best. (eg, Android defines it to be an interface that makes it easy to convert to different android types and manage the buffer fences).

Android defines it to be an interface that makes it easy to convert to different android types and manage the buffer fences. 

Mesa was hacking around the POD type it was using with GBMNativeBuffer to get the gbm_bo*. GBMNativeBuffer is just mg::NativeBuffer for that platform now.

Eglstream could use ShmFile as its native type (although I didn't make that change in this MP)

Nested will want a mg::NativeBuffer that gives access to its underlying MirBuffer*.

Approved by mir-ci-bot, Chris Halse Rogers, Alexandros Frantzis.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: