staging/windowmanager.git
6 years agocmake: add opton to link against LLVM's libc++
Marcus Fritzsch [Mon, 24 Jul 2017 09:41:58 +0000 (11:41 +0200)]
cmake: add opton to link against LLVM's libc++

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agojson_helper: use json-c object creation
Marcus Fritzsch [Thu, 13 Jul 2017 10:09:38 +0000 (12:09 +0200)]
json_helper: use json-c object creation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoapp: reset g_app on ~App()
Marcus Fritzsch [Thu, 13 Jul 2017 10:09:22 +0000 (12:09 +0200)]
app: reset g_app on ~App()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang-format, mostly indenting.
Marcus Fritzsch [Thu, 13 Jul 2017 08:23:55 +0000 (10:23 +0200)]
clang-format, mostly indenting.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang-tidy the place up
Marcus Fritzsch [Thu, 13 Jul 2017 07:38:59 +0000 (09:38 +0200)]
clang-tidy the place up

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoglue: renamed output files to better represent their actual purpose
Marcus Fritzsch [Thu, 13 Jul 2017 07:30:04 +0000 (09:30 +0200)]
glue: renamed output files to better represent their actual purpose

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: move most of main to app, separate ownership
Marcus Fritzsch [Wed, 12 Jul 2017 14:40:29 +0000 (16:40 +0200)]
main: move most of main to app, separate ownership

* Move everything apart from the display connection itself to App.
* Everything depending on the display however is owned by App.
* Dispatch events for the application in App::dispatch_events()
That is, display_dispatch and local stuff e.g. execute_pending().

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoGenerating binding API glue code using generate-binding.py
Marcus Fritzsch [Wed, 12 Jul 2017 13:59:37 +0000 (15:59 +0200)]
Generating binding API glue code using generate-binding.py

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain/app: started to move things to app
Marcus Fritzsch [Tue, 11 Jul 2017 13:18:42 +0000 (15:18 +0200)]
main/app: started to move things to app

Started implementing App, as the actual implementation, that is, to
pull out all the stuff that is actually the application and only have
glue code reside in main.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: appid and surfaceid in register_surface are unsigned
Marcus Fritzsch [Tue, 11 Jul 2017 13:17:32 +0000 (15:17 +0200)]
main: appid and surfaceid in register_surface are unsigned

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: rename g_wayland to g_afb_instance
Marcus Fritzsch [Tue, 11 Jul 2017 13:17:07 +0000 (15:17 +0200)]
main: rename g_wayland to g_afb_instance

It holds the data necessary for the AFB to work, hence call it
g_afb_instance to make this clear.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: sprops and lprops should be before the *_map_types
Marcus Fritzsch [Mon, 10 Jul 2017 13:42:13 +0000 (15:42 +0200)]
wayland: sprops and lprops should be before the *_map_types

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoTrack surface/layer properties with one struct
Marcus Fritzsch [Mon, 10 Jul 2017 08:44:29 +0000 (10:44 +0200)]
Track surface/layer properties with one struct

As both share the exact same properties this makes sense, we now can
write code once and work on both layer and surface properties. This
however is only relevant in the wayland "level" of things, as in WM
semantics layers are always fullscreen.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: imeplemented dummy register_surface with reply
Marcus Fritzsch [Fri, 7 Jul 2017 12:32:25 +0000 (14:32 +0200)]
main: imeplemented dummy register_surface with reply

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: remove CHECK_WAYLAND, inline logic into WRAP
Marcus Fritzsch [Fri, 7 Jul 2017 06:03:41 +0000 (08:03 +0200)]
main: remove CHECK_WAYLAND, inline logic into WRAP

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoutil: do not define needed afb version
Marcus Fritzsch [Thu, 6 Jul 2017 13:45:03 +0000 (15:45 +0200)]
util: do not define needed afb version

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: use our own log functions
Marcus Fritzsch [Thu, 6 Jul 2017 13:44:41 +0000 (15:44 +0200)]
main: use our own log functions

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agocmake: define afb-daemon configuration items on target basis
Marcus Fritzsch [Thu, 6 Jul 2017 13:44:21 +0000 (15:44 +0200)]
cmake: define afb-daemon configuration items on target basis

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: wrap afb verb handlers, "namepace" debug verbs
Marcus Fritzsch [Thu, 6 Jul 2017 13:31:31 +0000 (15:31 +0200)]
main: wrap afb verb handlers, "namepace" debug verbs

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoutil: logging to the afb daemon
Marcus Fritzsch [Thu, 6 Jul 2017 09:59:36 +0000 (11:59 +0200)]
util: logging to the afb daemon

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoMove all nlohmann::json to json_helper.cpp
Marcus Fritzsch [Thu, 6 Jul 2017 09:32:50 +0000 (11:32 +0200)]
Move all nlohmann::json to json_helper.cpp

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: further simplification
Marcus Fritzsch [Thu, 6 Jul 2017 07:38:15 +0000 (09:38 +0200)]
main: further simplification

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: reorganize and simplify
Marcus Fritzsch [Thu, 6 Jul 2017 07:16:01 +0000 (09:16 +0200)]
main: reorganize and simplify

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: add wl::display::get_error()
Marcus Fritzsch [Thu, 6 Jul 2017 07:15:16 +0000 (09:15 +0200)]
wayland: add wl::display::get_error()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoCheck for g_wayland in every API call.
Marcus Fritzsch [Wed, 5 Jul 2017 14:23:17 +0000 (16:23 +0200)]
Check for g_wayland in every API call.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: add layers and surfaces API calls
Marcus Fritzsch [Wed, 5 Jul 2017 14:13:46 +0000 (16:13 +0200)]
main: add layers and surfaces API calls

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoImplement window manager as an AGL App-FW binding
Marcus Fritzsch [Wed, 5 Jul 2017 12:02:05 +0000 (14:02 +0200)]
Implement window manager as an AGL App-FW binding

* Compile to shared object module, to be loaded by afb-daemon.
* Take most of main, rewrite to adhere to the AFB API.
* Implement dummy API call winman/status.
* Use export.map to specify symbol visibility.
* Poller and unique_fd are currently useless/unused.
* Logging is still only to stdout/stderr.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoAdd nlohnmann/json header only c++11+ json library v. 2.1.1
Marcus Fritzsch [Wed, 5 Jul 2017 11:56:50 +0000 (13:56 +0200)]
Add nlohnmann/json header only c++11+ json library v. 2.1.1

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoutil: noexcept logging and also noreturn for fatal()
Marcus Fritzsch [Tue, 4 Jul 2017 14:29:32 +0000 (16:29 +0200)]
util: noexcept logging and also noreturn for fatal()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: read only one signal and only return -1 if it succeeded
Marcus Fritzsch [Tue, 4 Jul 2017 14:29:05 +0000 (16:29 +0200)]
main: read only one signal and only return -1 if it succeeded

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang-tidy the place up
Marcus Fritzsch [Mon, 3 Jul 2017 09:05:38 +0000 (11:05 +0200)]
clang-tidy the place up

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoall: clang-format
Marcus Fritzsch [Mon, 3 Jul 2017 09:04:56 +0000 (11:04 +0200)]
all: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomoved Poller and unique_fd from main to util, fixed c++ issues in util
Marcus Fritzsch [Mon, 3 Jul 2017 09:04:24 +0000 (11:04 +0200)]
moved Poller and unique_fd from main to util, fixed c++ issues in util

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoutil.h and its impl are now c++
Marcus Fritzsch [Mon, 3 Jul 2017 09:01:28 +0000 (11:01 +0200)]
util.h and its impl are now c++

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: read only once from stdin for status log
Marcus Fritzsch [Fri, 30 Jun 2017 13:58:45 +0000 (15:58 +0200)]
main: read only once from stdin for status log

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agocmake: enable _GLIBCXX_DEBUG when building Debug
Marcus Fritzsch [Fri, 30 Jun 2017 11:55:12 +0000 (13:55 +0200)]
cmake: enable _GLIBCXX_DEBUG when building Debug

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: handling signals, added simple unique_fd RAII helper
Marcus Fritzsch [Fri, 30 Jun 2017 11:54:23 +0000 (13:54 +0200)]
main: handling signals, added simple unique_fd RAII helper

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: read() returns ssize_t not int
Marcus Fritzsch [Fri, 30 Jun 2017 11:53:51 +0000 (13:53 +0200)]
main: read() returns ssize_t not int

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: cleanup Poller implementation
Marcus Fritzsch [Fri, 30 Jun 2017 11:53:23 +0000 (13:53 +0200)]
main: cleanup Poller implementation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: better check_events implementation
Marcus Fritzsch [Fri, 30 Jun 2017 11:06:25 +0000 (13:06 +0200)]
main: better check_events implementation

* Introduced helper struct Poller
* Implements check_events() and calls custom handlers on POLLIN.
* Moved status dump to genivi::controller.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: add wl_output proxy-to-id mapping in wl_output global handler
Marcus Fritzsch [Thu, 29 Jun 2017 14:07:05 +0000 (16:07 +0200)]
main: add wl_output proxy-to-id mapping in wl_output global handler

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: rename connection, streamline init_layout and error handling
Marcus Fritzsch [Thu, 29 Jun 2017 12:29:13 +0000 (14:29 +0200)]
main: rename connection, streamline init_layout and error handling

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: do not special-case ~display for DEBUG_OUTPUT
Marcus Fritzsch [Thu, 29 Jun 2017 12:28:41 +0000 (14:28 +0200)]
wayland: do not special-case ~display for DEBUG_OUTPUT

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: genivi object events are called with their respective object
Marcus Fritzsch [Thu, 29 Jun 2017 12:27:57 +0000 (14:27 +0200)]
wayland: genivi object events are called with their respective object

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: be explicit about our struct layer/surface designation
Marcus Fritzsch [Wed, 28 Jun 2017 14:37:34 +0000 (16:37 +0200)]
wayland: be explicit about our struct layer/surface designation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: wayland_proxy ctor improvement
Marcus Fritzsch [Wed, 28 Jun 2017 14:36:54 +0000 (16:36 +0200)]
wayland: wayland_proxy ctor improvement

* Take the std::function by rval reference.
* Do not create a lambda for the wl_proxy_destroy deleter.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: header order fixed, comment on controller member order
Marcus Fritzsch [Wed, 28 Jun 2017 14:33:53 +0000 (16:33 +0200)]
wayland: header order fixed, comment on controller member order

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: delete copy ctors and operators
Marcus Fritzsch [Wed, 28 Jun 2017 14:33:16 +0000 (16:33 +0200)]
wayland: delete copy ctors and operators

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agocmake: do not generate the ivi_application protocol
Marcus Fritzsch [Wed, 28 Jun 2017 14:32:39 +0000 (16:32 +0200)]
cmake: do not generate the ivi_application protocol

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: unique_ptr'd wayland_proxy
Marcus Fritzsch [Tue, 27 Jun 2017 13:50:32 +0000 (15:50 +0200)]
wayland: unique_ptr'd wayland_proxy

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: removed unnecessary destructors
Marcus Fritzsch [Tue, 27 Jun 2017 07:23:43 +0000 (09:23 +0200)]
wayland: removed unnecessary destructors

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: simpler layout for controller::proxy_to_id maps
Marcus Fritzsch [Tue, 27 Jun 2017 06:55:18 +0000 (08:55 +0200)]
wayland: simpler layout for controller::proxy_to_id maps

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: moved screen inline methods to .cpp
Marcus Fritzsch [Tue, 27 Jun 2017 06:24:10 +0000 (08:24 +0200)]
wayland: moved screen inline methods to .cpp

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: do not include cstdlib, it's unused
Marcus Fritzsch [Tue, 27 Jun 2017 06:21:24 +0000 (08:21 +0200)]
main: do not include cstdlib, it's unused

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: moved inline methods to .cpp
Marcus Fritzsch [Tue, 27 Jun 2017 06:21:05 +0000 (08:21 +0200)]
wayland: moved inline methods to .cpp

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: less cast-y, minor style fixes
Marcus Fritzsch [Tue, 27 Jun 2017 05:55:08 +0000 (07:55 +0200)]
wayland: less cast-y, minor style fixes

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agocmake: merged target properties on winman, added IPO/LTO
Marcus Fritzsch [Tue, 27 Jun 2017 05:54:48 +0000 (07:54 +0200)]
cmake: merged target properties on winman, added IPO/LTO

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoclang-tidy the place up
Marcus Fritzsch [Mon, 26 Jun 2017 19:54:01 +0000 (21:54 +0200)]
clang-tidy the place up

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: controller_surface() sets surface visibility, less lookups
Marcus Fritzsch [Mon, 26 Jun 2017 14:41:15 +0000 (16:41 +0200)]
wayland: controller_surface() sets surface visibility, less lookups

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: less lookup-y controller_layer()
Marcus Fritzsch [Mon, 26 Jun 2017 14:40:51 +0000 (16:40 +0200)]
wayland: less lookup-y controller_layer()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: remove layer on controller::layer_destroyed
Marcus Fritzsch [Mon, 26 Jun 2017 14:39:05 +0000 (16:39 +0200)]
wayland: remove layer on controller::layer_destroyed

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: set layer visibility in init_layout()
Marcus Fritzsch [Mon, 26 Jun 2017 14:38:40 +0000 (16:38 +0200)]
main: set layer visibility in init_layout()

Also don't set layer visibility when adding surfaces.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: minor clang-format fixes
Marcus Fritzsch [Mon, 26 Jun 2017 14:38:22 +0000 (16:38 +0200)]
wayland: minor clang-format fixes

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: introduce reverse mappings of proxy-ptr to id
Marcus Fritzsch [Mon, 26 Jun 2017 14:37:52 +0000 (16:37 +0200)]
wayland: introduce reverse mappings of proxy-ptr to id

Needed to lookup the objects when we receive calls like e.g.
surface::layer().

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: rename controlled_entity to controller_child
Marcus Fritzsch [Mon, 26 Jun 2017 14:34:55 +0000 (16:34 +0200)]
wayland: rename controlled_entity to controller_child

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: pass struct conn by-reference to init_layout()
Marcus Fritzsch [Mon, 26 Jun 2017 11:26:50 +0000 (13:26 +0200)]
main: pass struct conn by-reference to init_layout()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: strip std::quniue_ptr from wl::display as it is superfluous
Marcus Fritzsch [Mon, 26 Jun 2017 11:22:00 +0000 (13:22 +0200)]
main: strip std::quniue_ptr from wl::display as it is superfluous

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: cast wl_fixed_to_double() return to float for our interface
Marcus Fritzsch [Mon, 26 Jun 2017 11:20:37 +0000 (13:20 +0200)]
wayland: cast wl_fixed_to_double() return to float for our interface

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: display unique_ptr holds a void(*)(...) deleter
Marcus Fritzsch [Mon, 26 Jun 2017 11:20:05 +0000 (13:20 +0200)]
wayland: display unique_ptr holds a void(*)(...) deleter

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: clang-format
Marcus Fritzsch [Mon, 26 Jun 2017 11:19:21 +0000 (13:19 +0200)]
wayland: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoutil: make log_() static
Marcus Fritzsch [Mon, 26 Jun 2017 11:17:33 +0000 (13:17 +0200)]
util: make log_() static

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: one less level of unique_ptr
Marcus Fritzsch [Mon, 26 Jun 2017 10:18:31 +0000 (12:18 +0200)]
wayland: one less level of unique_ptr

Display now holds struct registry by value, as holding it through a
unique_ptr was rather unnecessary.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: use auto variables where appropriate and sensible
Marcus Fritzsch [Mon, 26 Jun 2017 10:16:00 +0000 (12:16 +0200)]
main: use auto variables where appropriate and sensible

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: header hygiene
Marcus Fritzsch [Mon, 26 Jun 2017 10:15:40 +0000 (12:15 +0200)]
main: header hygiene

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agocmake: modernized to the best of my knowledge
Marcus Fritzsch [Mon, 26 Jun 2017 10:15:27 +0000 (12:15 +0200)]
cmake: modernized to the best of my knowledge

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: set surface layout in controller::surface
Marcus Fritzsch [Fri, 23 Jun 2017 13:51:12 +0000 (15:51 +0200)]
wayland: set surface layout in controller::surface

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agouse unordered_map for id->obj maps
Marcus Fritzsch [Fri, 23 Jun 2017 13:37:34 +0000 (15:37 +0200)]
use unordered_map for id->obj maps

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: c++-ifiy struct conn c init
Marcus Fritzsch [Fri, 23 Jun 2017 13:11:57 +0000 (15:11 +0200)]
main: c++-ifiy struct conn c init

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: do not capture the whole environment in lambdas
Marcus Fritzsch [Fri, 23 Jun 2017 13:09:03 +0000 (15:09 +0200)]
main: do not capture the whole environment in lambdas

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: added some 'demarcation' comments
Marcus Fritzsch [Fri, 23 Jun 2017 13:08:02 +0000 (15:08 +0200)]
main: added some 'demarcation' comments

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain/init_layout: use screen::set_render_order instead of add_layer calls
Marcus Fritzsch [Fri, 23 Jun 2017 13:05:14 +0000 (15:05 +0200)]
main/init_layout: use screen::set_render_order instead of add_layer calls

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: C++ified set_render_order requests for layer and screen
Marcus Fritzsch [Fri, 23 Jun 2017 13:04:37 +0000 (15:04 +0200)]
wayland: C++ified set_render_order requests for layer and screen

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agoupdate session
Marcus Fritzsch [Fri, 23 Jun 2017 12:48:06 +0000 (14:48 +0200)]
update session

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: initialize layer members
Marcus Fritzsch [Fri, 23 Jun 2017 12:47:39 +0000 (14:47 +0200)]
wayland: initialize layer members

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: print debug message when setting surface onto layer
Marcus Fritzsch [Fri, 23 Jun 2017 12:47:23 +0000 (14:47 +0200)]
wayland: print debug message when setting surface onto layer

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: remove surface immediately on surface_destroyed event
Marcus Fritzsch [Fri, 23 Jun 2017 12:47:00 +0000 (14:47 +0200)]
wayland: remove surface immediately on surface_destroyed event

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: flush after execute_pending
Marcus Fritzsch [Fri, 23 Jun 2017 12:28:10 +0000 (14:28 +0200)]
main: flush after execute_pending

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: Reset layout on stratup; bottom and top layer layout
Marcus Fritzsch [Fri, 23 Jun 2017 12:27:55 +0000 (14:27 +0200)]
main: Reset layout on stratup; bottom and top layer layout

* When started, layout is cleared, that is layers will be removed and
screen render order reset
* Layers 100 and 1000 are created, layer 1000 s the top layer.
* Add layers to screen
* C++-ification of some cumbersome direct-pointer accesses.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: put surface 0x16180 on layer 100, all others on layer 1000
Marcus Fritzsch [Fri, 23 Jun 2017 12:26:16 +0000 (14:26 +0200)]
wayland: put surface 0x16180 on layer 100, all others on layer 1000

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: minimal code style change
Marcus Fritzsch [Fri, 23 Jun 2017 12:25:50 +0000 (14:25 +0200)]
wayland: minimal code style change

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: also show layer info on line break
Marcus Fritzsch [Fri, 23 Jun 2017 12:10:21 +0000 (14:10 +0200)]
main: also show layer info on line break

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: simplify surface property setting
Marcus Fritzsch [Fri, 23 Jun 2017 12:09:52 +0000 (14:09 +0200)]
wayland: simplify surface property setting

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: store layer properties
Marcus Fritzsch [Fri, 23 Jun 2017 12:09:32 +0000 (14:09 +0200)]
wayland: store layer properties

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: set surfaces fullscreen when configured.
Marcus Fritzsch [Fri, 23 Jun 2017 10:41:25 +0000 (12:41 +0200)]
wayland: set surfaces fullscreen when configured.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: initalize all controll members
Marcus Fritzsch [Fri, 23 Jun 2017 10:40:55 +0000 (12:40 +0200)]
wayland: initalize all controll members

* Also; added output_size - for now.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: init dummy layout of layer 100 on the first screen
Marcus Fritzsch [Fri, 23 Jun 2017 10:29:27 +0000 (12:29 +0200)]
main: init dummy layout of layer 100 on the first screen

* If the layer is not existent, create it.
* Set the layer to the output dimensions.
* Set layer visibility to 1.
* Add the layer to the first screen.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agomain: check that outputs are available before running main loop
Marcus Fritzsch [Fri, 23 Jun 2017 10:24:41 +0000 (12:24 +0200)]
main: check that outputs are available before running main loop

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: add missing add_layer and clear requests to genivi::screen
Marcus Fritzsch [Fri, 23 Jun 2017 10:24:06 +0000 (12:24 +0200)]
wayland: add missing add_layer and clear requests to genivi::screen

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: add missing controller requests
Marcus Fritzsch [Fri, 23 Jun 2017 10:23:36 +0000 (12:23 +0200)]
wayland: add missing controller requests

* Added layer_create and surface_create to genivi::controller.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
6 years agowayland: task names, delete surfaces using pending_tasks
Marcus Fritzsch [Fri, 23 Jun 2017 07:25:26 +0000 (09:25 +0200)]
wayland: task names, delete surfaces using pending_tasks

* Use the pending task list to delete surfaces
* Added task names for debug output, simple pointers to const char for
dirty and cheap storage.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>