staging/windowmanager.git
7 years agoutil: add scope tracer utility (hack, but more or less useful)
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:26 +0000 (11:29 +0200)]
util: add scope tracer utility (hack, but more or less useful)

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: extend wl::display for finer grained dispatch control
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:26 +0000 (11:29 +0200)]
wayland: extend wl::display for finer grained dispatch control

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoWIP split layouts, reading config, defining data layout.
Marcus Fritzsch [Tue, 12 Sep 2017 09:29:20 +0000 (11:29 +0200)]
WIP split layouts, reading config, defining data layout.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp/binding: move binding_api impl to its own source file.
Marcus Fritzsch [Tue, 5 Sep 2017 13:51:20 +0000 (15:51 +0200)]
App/binding: move binding_api impl to its own source file.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agomain: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present
Marcus Fritzsch [Tue, 5 Sep 2017 13:50:19 +0000 (15:50 +0200)]
main: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: emit visibility events
Marcus Fritzsch [Tue, 5 Sep 2017 13:04:59 +0000 (15:04 +0200)]
App: emit visibility events

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: prefer using instead of typedef
Marcus Fritzsch [Tue, 5 Sep 2017 11:56:17 +0000 (13:56 +0200)]
layers: prefer using instead of typedef

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers.json: remove unused layers description.
Marcus Fritzsch [Tue, 5 Sep 2017 11:56:03 +0000 (13:56 +0200)]
layers.json: remove unused layers description.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoREADME: update
Marcus Fritzsch [Tue, 5 Sep 2017 11:40:47 +0000 (13:40 +0200)]
README: update

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: be a little more thorough when activating a surface
Marcus Fritzsch [Tue, 5 Sep 2017 10:12:51 +0000 (12:12 +0200)]
App: be a little more thorough when activating a surface

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: only activate/deactivate if necessary
Marcus Fritzsch [Tue, 5 Sep 2017 10:10:40 +0000 (12:10 +0200)]
App: only activate/deactivate if necessary

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: remove unimplemented (stubbed) binding API methods
Marcus Fritzsch [Tue, 5 Sep 2017 10:10:12 +0000 (12:10 +0200)]
App: remove unimplemented (stubbed) binding API methods

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: debug log prints IDs instead of controller ptr
Marcus Fritzsch [Tue, 5 Sep 2017 10:09:26 +0000 (12:09 +0200)]
wayland: debug log prints IDs instead of controller ptr

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: some quality improvements, add activate/deactivate helper
Marcus Fritzsch [Tue, 5 Sep 2017 09:53:17 +0000 (11:53 +0200)]
App: some quality improvements, add activate/deactivate helper

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: remove last_active logic
Marcus Fritzsch [Tue, 5 Sep 2017 09:52:37 +0000 (11:52 +0200)]
App: remove last_active logic

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agomain: exit on compositor hangup
Marcus Fritzsch [Tue, 5 Sep 2017 09:51:27 +0000 (11:51 +0200)]
main: exit on compositor hangup

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: cleanup requestSurface API method.
Marcus Fritzsch [Mon, 4 Sep 2017 16:00:24 +0000 (18:00 +0200)]
App: cleanup requestSurface API method.

* Use lookup_id().
* Do not call activate_surface() as the surface does not yet exist.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: emit activated and deactivated events
Marcus Fritzsch [Mon, 4 Sep 2017 15:56:38 +0000 (17:56 +0200)]
App: emit activated and deactivated events

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp: cleanup name/id mapping and its reverse
Marcus Fritzsch [Mon, 4 Sep 2017 15:56:18 +0000 (17:56 +0200)]
App: cleanup name/id mapping and its reverse

* Single name/id mapping in id_alloc.
* Add Proxy methods to App.
* Disable old API functions to activate surfaces by ID.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoApp/API: fix event emission methods
Marcus Fritzsch [Mon, 4 Sep 2017 15:54:09 +0000 (17:54 +0200)]
App/API: fix event emission methods

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agomain: simplify event broadcasting
Marcus Fritzsch [Fri, 1 Sep 2017 10:30:03 +0000 (12:30 +0200)]
main: simplify event broadcasting

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: remove previous work around experiments, add one that fixes HomeScreen
Marcus Fritzsch [Thu, 31 Aug 2017 15:27:02 +0000 (17:27 +0200)]
app: remove previous work around experiments, add one that fixes HomeScreen

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: remove add_task/execute_pending support
Marcus Fritzsch [Thu, 31 Aug 2017 15:23:32 +0000 (17:23 +0200)]
app: remove add_task/execute_pending support

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agomain/binding: do not allow concurrent threads in App
Marcus Fritzsch [Thu, 31 Aug 2017 15:17:42 +0000 (17:17 +0200)]
main/binding: do not allow concurrent threads in App

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: workaround for visibility setting; use system()
Marcus Fritzsch [Wed, 30 Aug 2017 14:51:57 +0000 (16:51 +0200)]
app: workaround for visibility setting; use system()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: visibility setting work around... peak software enfineering right here!!1
Marcus Fritzsch [Wed, 30 Aug 2017 14:04:54 +0000 (16:04 +0200)]
app: visibility setting work around... peak software enfineering right here!!1

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: do not use the Qt surface ID shift hack
Marcus Fritzsch [Wed, 30 Aug 2017 12:47:10 +0000 (14:47 +0200)]
app: do not use the Qt surface ID shift hack

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: use activate_surface() in surface_set_layout()
Marcus Fritzsch [Wed, 30 Aug 2017 12:46:29 +0000 (14:46 +0200)]
app: use activate_surface() in surface_set_layout()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: only create layers and surfaces when necessary
Marcus Fritzsch [Wed, 30 Aug 2017 12:46:01 +0000 (14:46 +0200)]
wayland: only create layers and surfaces when necessary

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: honor output transformations
Marcus Fritzsch [Wed, 30 Aug 2017 12:45:28 +0000 (14:45 +0200)]
wayland: honor output transformations

At least rotations by 90 and 270 degrees.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: do not apply left id_shift to generated ID!
Marcus Fritzsch [Tue, 29 Aug 2017 13:06:18 +0000 (15:06 +0200)]
app: do not apply left id_shift to generated ID!

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: use id_shift of 22, just like in Qt
Marcus Fritzsch [Tue, 29 Aug 2017 13:01:08 +0000 (15:01 +0200)]
app: use id_shift of 22, just like in Qt

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/main: add send_event() to binding_api
Marcus Fritzsch [Tue, 29 Aug 2017 12:55:35 +0000 (14:55 +0200)]
app/main: add send_event() to binding_api

* Preliminary event support - wrong names, likely wrong implementation

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: added enddraw() and deactivate_surface()
Marcus Fritzsch [Tue, 29 Aug 2017 11:23:43 +0000 (13:23 +0200)]
app: added enddraw() and deactivate_surface()

Implementation untested, not sure if this is even sensible...

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/id_alloc: remove destroyed surfaces
Marcus Fritzsch [Fri, 25 Aug 2017 08:08:22 +0000 (10:08 +0200)]
app/id_alloc: remove destroyed surfaces

Also, make away with those overloaded operators for generation
and lookup.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclarify some things
Marcus Fritzsch [Thu, 24 Aug 2017 14:37:43 +0000 (16:37 +0200)]
clarify some things

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd role to layer::to_json()
Marcus Fritzsch [Fri, 18 Aug 2017 13:44:19 +0000 (15:44 +0200)]
add role to layer::to_json()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclang-tidy
Marcus Fritzsch [Thu, 17 Aug 2017 15:09:24 +0000 (17:09 +0200)]
clang-tidy

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclang-format
Marcus Fritzsch [Thu, 17 Aug 2017 15:03:00 +0000 (17:03 +0200)]
clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoImplement surface names
Marcus Fritzsch [Thu, 17 Aug 2017 14:45:56 +0000 (16:45 +0200)]
Implement surface names

* request_surface(name: string) -> id: int.
* activate_surface(name: string).
* names will be mapped to their respective layers by use of the layers'
  surface rola match, a regex.
* the generated IDs are global and not reused.
* allow wp-request to use -p, disable use of pygments even if found.

Things missing:
* surface removal does not remove already established mappings/names.
* Mostly untested.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: some more constructor security
Marcus Fritzsch [Wed, 16 Aug 2017 12:52:40 +0000 (14:52 +0200)]
app: some more constructor security

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: remove last remnants of get<T> to read ints from json
Marcus Fritzsch [Tue, 15 Aug 2017 14:00:51 +0000 (16:00 +0200)]
layers: remove last remnants of get<T> to read ints from json

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayout.json: fix number strings into actual numbers.
Marcus Fritzsch [Wed, 9 Aug 2017 14:16:38 +0000 (16:16 +0200)]
layout.json: fix number strings into actual numbers.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoRemove the DB() makro, replace with logdebug() where sensible
Marcus Fritzsch [Wed, 9 Aug 2017 14:16:06 +0000 (16:16 +0200)]
Remove the DB() makro, replace with logdebug() where sensible

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: fix json to actually include numbers
Marcus Fritzsch [Wed, 9 Aug 2017 13:57:18 +0000 (15:57 +0200)]
layers: fix json to actually include numbers

Actually use numbers where we had number-strings. This simplifies the
json parsing quite a bit.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowm-request: fix mode and shebang
Marcus Fritzsch [Wed, 9 Aug 2017 13:24:24 +0000 (15:24 +0200)]
wm-request: fix mode and shebang

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd script wm-request
Marcus Fritzsch [Wed, 9 Aug 2017 10:42:26 +0000 (12:42 +0200)]
add script wm-request

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoclang formatting
Marcus Fritzsch [Tue, 8 Aug 2017 10:04:28 +0000 (12:04 +0200)]
clang formatting

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoremove Poller
Marcus Fritzsch [Tue, 8 Aug 2017 10:03:45 +0000 (12:03 +0200)]
remove Poller

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoremove some unnuecessary comments
Marcus Fritzsch [Tue, 8 Aug 2017 10:03:35 +0000 (12:03 +0200)]
remove some unnuecessary comments

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoremove session.vim
Marcus Fritzsch [Tue, 8 Aug 2017 09:26:18 +0000 (11:26 +0200)]
remove session.vim

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: uncomment INTERPROCEDURAL_OPTIMIZATION setting
Marcus Fritzsch [Tue, 8 Aug 2017 09:07:57 +0000 (11:07 +0200)]
cmake: uncomment INTERPROCEDURAL_OPTIMIZATION setting

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers.json: add separate layers description
Marcus Fritzsch [Thu, 3 Aug 2017 12:07:03 +0000 (14:07 +0200)]
layers.json: add separate layers description

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/api: add demo_activate_all()
Marcus Fritzsch [Thu, 3 Aug 2017 10:38:51 +0000 (12:38 +0200)]
app/api: add demo_activate_all()

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: remove spurious comment
Marcus Fritzsch [Thu, 3 Aug 2017 09:39:08 +0000 (11:39 +0200)]
app: remove spurious comment

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/api: add demo_activate_surface() api_binding
Marcus Fritzsch [Thu, 3 Aug 2017 08:37:01 +0000 (10:37 +0200)]
app/api: add demo_activate_surface() api_binding

* Added "main_surface" entry to layers.json.
* This surface is never made invisible by activate_surface().

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: do not set surface source rectangle on layout setup
Marcus Fritzsch [Wed, 2 Aug 2017 14:27:44 +0000 (16:27 +0200)]
app: do not set surface source rectangle on layout setup

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: comment on surface visiblity and layout setup
Marcus Fritzsch [Wed, 2 Aug 2017 14:25:02 +0000 (16:25 +0200)]
app: comment on surface visiblity and layout setup

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/wayland: move late-tasks to App
Marcus Fritzsch [Wed, 2 Aug 2017 14:16:15 +0000 (16:16 +0200)]
app/wayland: move late-tasks to App

* Move late-tasks to App.
* Add add_task() to controller_hooks.
* Do not roundtrip at the end of App::execute_pending(), flush() is
  enough.
* Tasks are now void() functions, need to capture what is needed.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocmake: reference export.map using CMAKE_CURRENT_SOURCE_DIR
Marcus Fritzsch [Wed, 2 Aug 2017 13:59:38 +0000 (15:59 +0200)]
cmake: reference export.map using CMAKE_CURRENT_SOURCE_DIR

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agofix LICENSE file
Marcus Fritzsch [Wed, 2 Aug 2017 13:42:24 +0000 (15:42 +0200)]
fix LICENSE file

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd LICENSE file
Marcus Fritzsch [Wed, 2 Aug 2017 13:38:08 +0000 (15:38 +0200)]
add LICENSE file

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: add surface_set_layout(), call it from genivi::controller late-task
Marcus Fritzsch [Wed, 2 Aug 2017 12:13:42 +0000 (14:13 +0200)]
app: add surface_set_layout(), call it from genivi::controller late-task

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: add {surface,layer}_exists(uint32_t) methods
Marcus Fritzsch [Wed, 2 Aug 2017 12:13:08 +0000 (14:13 +0200)]
wayland: add {surface,layer}_exists(uint32_t) methods

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: rename fullscren surface task
Marcus Fritzsch [Wed, 2 Aug 2017 09:03:30 +0000 (11:03 +0200)]
app: rename fullscren surface task

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd license text to implementation files
Marcus Fritzsch [Wed, 2 Aug 2017 09:03:18 +0000 (11:03 +0200)]
add license text to implementation files

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: debug_layers returns a representation of layers.json configuration
Marcus Fritzsch [Tue, 1 Aug 2017 15:49:40 +0000 (17:49 +0200)]
app: debug_layers returns a representation of layers.json configuration

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: add layer and layer_map to_json() helper
Marcus Fritzsch [Tue, 1 Aug 2017 15:49:04 +0000 (17:49 +0200)]
layers: add layer and layer_map to_json() helper

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: add genivi::full_rect and operator== for genivi::rect
Marcus Fritzsch [Tue, 1 Aug 2017 15:48:07 +0000 (17:48 +0200)]
wayland: add genivi::full_rect and operator== for genivi::rect

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: use config to determine json config file names
Marcus Fritzsch [Tue, 1 Aug 2017 15:15:19 +0000 (17:15 +0200)]
app: use config to determine json config file names

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd config, a simple config interface. i.e. key-value-store
Marcus Fritzsch [Tue, 1 Aug 2017 15:13:56 +0000 (17:13 +0200)]
add config, a simple config interface. i.e. key-value-store

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agorename ids.json to layers.json, because that's what is is.
Marcus Fritzsch [Tue, 1 Aug 2017 15:13:03 +0000 (17:13 +0200)]
rename ids.json to layers.json, because that's what is is.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: rename load_layer_ids to load_layer_map
Marcus Fritzsch [Tue, 1 Aug 2017 14:25:24 +0000 (16:25 +0200)]
app: rename load_layer_ids to load_layer_map

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: rename surface_id_to_layer and surface_id_to_layer_map
Marcus Fritzsch [Tue, 1 Aug 2017 14:16:29 +0000 (16:16 +0200)]
layers: rename surface_id_to_layer and surface_id_to_layer_map

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayer: document intentions of layer structure
Marcus Fritzsch [Tue, 1 Aug 2017 14:14:12 +0000 (16:14 +0200)]
layer: document intentions of layer structure

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: some comments and erorrs regarding IDs configuration
Marcus Fritzsch [Tue, 1 Aug 2017 14:05:47 +0000 (16:05 +0200)]
app: some comments and erorrs regarding IDs configuration

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: when loading config, handle returned errors
Marcus Fritzsch [Tue, 1 Aug 2017 14:05:29 +0000 (16:05 +0200)]
app: when loading config, handle returned errors

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: simplify config loading code, handle errors too
Marcus Fritzsch [Tue, 1 Aug 2017 14:05:10 +0000 (16:05 +0200)]
app: simplify config loading code, handle errors too

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agominor clang-format
Marcus Fritzsch [Tue, 1 Aug 2017 10:50:28 +0000 (12:50 +0200)]
minor clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd simple README
Marcus Fritzsch [Tue, 1 Aug 2017 10:22:42 +0000 (12:22 +0200)]
add simple README

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: handle failure to load layout.json gracefully
Marcus Fritzsch [Tue, 1 Aug 2017 10:19:14 +0000 (12:19 +0200)]
app: handle failure to load layout.json gracefully

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: implement configured surface areas from ids.json
Marcus Fritzsch [Tue, 1 Aug 2017 09:48:13 +0000 (11:48 +0200)]
app: implement configured surface areas from ids.json

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: make genivi::rect::width and height int32
Marcus Fritzsch [Tue, 1 Aug 2017 09:47:46 +0000 (11:47 +0200)]
wayland: make genivi::rect::width and height int32

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: surfaces on layer != 1000 leave a 100pixel top and bottom margin
Marcus Fritzsch [Mon, 31 Jul 2017 10:16:11 +0000 (12:16 +0200)]
app: surfaces on layer != 1000 leave a 100pixel top and bottom margin

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: add debug_terminate() event, quick hack to terminate
Marcus Fritzsch [Fri, 28 Jul 2017 13:43:47 +0000 (15:43 +0200)]
app: add debug_terminate() event, quick hack to terminate

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agowayland: clang-format
Marcus Fritzsch [Fri, 28 Jul 2017 13:07:01 +0000 (15:07 +0200)]
wayland: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoutil: clang-format
Marcus Fritzsch [Fri, 28 Jul 2017 13:06:50 +0000 (15:06 +0200)]
util: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: clang-format
Marcus Fritzsch [Fri, 28 Jul 2017 13:06:42 +0000 (15:06 +0200)]
layers: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agojson_helper: clang-format
Marcus Fritzsch [Fri, 28 Jul 2017 13:06:28 +0000 (15:06 +0200)]
json_helper: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agocontroller_hooks: clang-format
Marcus Fritzsch [Fri, 28 Jul 2017 13:06:17 +0000 (15:06 +0200)]
controller_hooks: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: clang-format
Marcus Fritzsch [Fri, 28 Jul 2017 13:06:05 +0000 (15:06 +0200)]
app: clang-format

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoresult: return nullopt if error is actuall nullptr
Marcus Fritzsch [Fri, 28 Jul 2017 13:05:53 +0000 (15:05 +0200)]
result: return nullopt if error is actuall nullptr

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agolayers: provide a layers-only vector
Marcus Fritzsch [Fri, 28 Jul 2017 12:40:27 +0000 (14:40 +0200)]
layers: provide a layers-only vector

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: logdebug() layer setup
Marcus Fritzsch [Fri, 28 Jul 2017 12:08:43 +0000 (14:08 +0200)]
app: logdebug() layer setup

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: scene setup according to ids.json
Marcus Fritzsch [Fri, 28 Jul 2017 11:19:47 +0000 (13:19 +0200)]
app: scene setup according to ids.json

* Setup layers as specified in ids.json.
* Map surfaces to their layers.
* Complain about unknown surfaces (i.e. those w/o a mapping).

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: preallocate layouts storage
Marcus Fritzsch [Fri, 28 Jul 2017 10:43:09 +0000 (12:43 +0200)]
app: preallocate layouts storage

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/wayland: move surface setup as is to app controller hook
Marcus Fritzsch [Fri, 28 Jul 2017 10:34:43 +0000 (12:34 +0200)]
app/wayland: move surface setup as is to app controller hook

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp: wire up controller_hooks
Marcus Fritzsch [Fri, 28 Jul 2017 10:33:56 +0000 (12:33 +0200)]
app: wire up controller_hooks

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoadd controller_hooks, a proxy for calls from the controller to the application
Marcus Fritzsch [Fri, 28 Jul 2017 10:31:24 +0000 (12:31 +0200)]
add controller_hooks, a proxy for calls from the controller to the application

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
7 years agoapp/layers: move embedded test run to layers
Marcus Fritzsch [Fri, 28 Jul 2017 07:57:24 +0000 (09:57 +0200)]
app/layers: move embedded test run to layers

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