1. 17 Jul, 2015 1 commit
    • Derek Foreman's avatar
      input: Pass the appropriate pointer type to bindings instead of a seat · 8ae2db5b
      Derek Foreman authored
      Normally we need to check if a seat's [device_type]_count is > 0 before
      we can use the associated pointer.  However, in a binding you're
      guaranteed that the seat has a device of that type.  If we pass in
      that type instead of the seat, it's obvious we don't have to test it.
      
      The bindings can still get the seat pointer via whatever->seat if they
      need it.
      
      This is preparation for a follow up patch that prevents direct access
      to seat->device_type pointers, and this will save us a few tests at
      that point.
      Reviewed-by: Jonas Ådahl's avatarJonas Ådahl <jadahl@gmail.com>
      Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
      8ae2db5b
  2. 15 Jun, 2015 1 commit
  3. 25 Feb, 2015 1 commit
    • Pekka Paalanen's avatar
      surface-screenshot: a new manual test module · 312fe5f4
      Pekka Paalanen authored
      Add a new Weston plugin under tests/ for manual testing of the
      surface-shooting API.
      
      The debug key binding 'h' triggers a surface shot from the surface that
      currently has the pointer focus. The shot is written in PAM format into
      a file. PAM format was chosen because it is dead-simple to write from
      scratch and can carry an RGBA format.
      
      Changes in v2:
      - check fprintf calls, fix a malloc without free
      - remove stride and format arguments from the API
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      v1 Tested-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      312fe5f4