weston-ivi-shell: Add function of save as bitmap.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell: Add surface-screenshot function.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ivi-controller: Take surface screenshot even if surface is not on layer.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
tests: check roundtrip() result in Test ctor

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: use wl_output userdata pointer

And remove now unneeded get_screen_context_by_output()

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: allow clean shutdown on partial init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: check for valid controller on init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: shutdown_fd should be set to a default of -1

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: destroy output objects, even w/o controller

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: move eventfd init to init_control()

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: rewrite sync_and_acquire_instance

* Moved all of the code to impl_sync_and_acquire_instance
* The macro still allows for ILM_FAILED return if instance is not
  correctly initialized or the wayland display connection broke.

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: check for valid wl_event_queue on init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: stricter checking in display_roundtrip_queue()

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: check roundtrip results on init

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
tests: fixed 2 use-after-free errors

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ilmControl: issue send_stats request on getPropertiesOfSurface

In order to have a current set of statistics in surface properties,
request submission of stats prior to retrieval of actual properties.

Also, if display_roundtrip_queue() fails in this one we assume something
is really broken and don't bother returning properties w/o stats but
simply error out.

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
tests: check surfaceProperties.creatorPid too

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>