1. 17 Jan, 2015 3 commits
  2. 15 Jan, 2015 3 commits
  3. 08 Jan, 2015 1 commit
  4. 19 Dec, 2014 1 commit
    • Derek Foreman's avatar
      compositor-x11: Fix some shutdown crashes · 99bfa647
      Derek Foreman authored
      The assertion in x11_compositor_find_output() can trigger during normal
      shutdown, for example, when moving the mouse while hitting a hotkey to
      close the weston window.
      Instead we can remove the assert(), return NULL, and discard events
      we can't find a destination output for.
      v2 Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
      v1 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
      Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
  5. 18 Dec, 2014 1 commit
  6. 16 Dec, 2014 2 commits
  7. 15 Dec, 2014 13 commits
  8. 12 Dec, 2014 3 commits
  9. 11 Dec, 2014 2 commits
  10. 08 Dec, 2014 2 commits
    • Pekka Paalanen's avatar
      compositor: Implement JSON-timeline logging · b502654b
      Pekka Paalanen authored
      Logging is activated and deactivated with the debug key binding 't'.
      When activated, it creates a new log file, where it records the events.
      The log file contains events and detailed object information entries in
      JSON format, and is meant to be parsed in sequence from beginning to the
      The emitted events are mostly related to the output repaint cycle, like
      when repaint begins, is submitted to GPU, and when it completes on a
      vblank. This is recorded per-output. Also some per-surface events are
      recorded, including when surface damage is flushed.
      To reduce the log size, events refer to objects like outputs and
      surfaces by id numbers. Detailed object information is emitted only as
      needed: on the first object occurrence, and afterwards only if
      weston_timeline_object::force_refresh asks for it.
      The detailed information for surfaces includes the string returned by
      weston_surface::get_label. Therefore it is important to set
      weston_timeline_object::force_refresh = 1 whenever the string would
      change, so that the new details get recorded.
      A rudimentary parser and SVG generator can be found at:
      The timeline logs can answer questions including:
      - How does the compositor repaint cycle work timing-wise?
      - When was the vblank deadline missed?
      - What is the latency from surface commit to showing the new content on
      - How long does it take to process the scenegraph?
      v2: weston_surface::get_description renamed to get_label.
      v3: reafctor a bit into fprint_quoted_string().
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    • Pekka Paalanen's avatar
      compositor: add weston_surface_set_label_func() · 8274d901
      Pekka Paalanen authored
      When printing out logs from Weston's actions, mainly for debugging, it
      can be very difficult to identify the different surfaces.  Inspecting
      the configure function pointer is not useful, as the configure functions
      may live in modules.
      Add vfunc get_label to weston_surface, which will produce a short,
      human-readable description of the surface, which allows identifying it
      better, rather than just looking at the surface size, for instance.
      Set the label function from most parts of Weston, to identify cursors and
      drag icons, and panels, backgrounds, screensavers and lock surfaces, and
      the desktop shell's application surfaces.
      v2: renamed 'description' to 'label', so we get
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
  11. 04 Dec, 2014 9 commits