~vanvugt/mir/fix-1646700

Viewing all changes in revision 3854.

  • Committer: Tarmac
  • Author(s): Kevin DuBois
  • Date: 2016-11-30 04:19:26 UTC
  • mfrom: (3806.1.6 mirbuffer-mapping)
  • Revision ID: tarmac-20161130041926-msihcrk14v5n9fk7
client: change the yet-to-be published mir_buffer api from mir_buffer_get_graphics_region to mir_buffer_mmap/mir_buffer_munmap. This clarifies what's going on with the buffer (mmap/munmap should be a familiar concept), as well as gives a way to synchronize the memory region for cpu/gpu access without contacting the server (see FIXME in lp:~kdub/mir/egl-mirbuffer-import where I want to upload a cpu-written MirBuffer for GLES texture use).
This also had a parameter that indicates memory layout, some info missing from the current api.

I decided not to make this an extension, as all platforms should be able to write to a buffer via cpu.

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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: