aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-09-14App: remove unused g_app global, make dtor defaultMarcus Fritzsch1-6/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14app/afbclient: use the correct names for active/inactive eventsMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14app: a couple of style fixes + formatMarcus Fritzsch1-7/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Remove remnants of obsolete surface management by their IDsMarcus Fritzsch1-12/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: controller hooks implMarcus Fritzsch1-0/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: be more thorough on (de)activate()Marcus Fritzsch1-2/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: correctly deactivate sub surfacesMarcus Fritzsch1-3/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: remove unused field layoutsMarcus Fritzsch1-5/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: fix missing layout_commit() on single-surface deactivateMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12policy: add a simple policy stub, broke some layouting thoMarcus Fritzsch1-69/+87
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: emit_syncdraw() only after layout commit to compositorMarcus Fritzsch1-8/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12layers/app: properly remove surfs, deactivate main_surfaceMarcus Fritzsch1-3/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: add layout_commit()Marcus Fritzsch1-13/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: single-method layout setupMarcus Fritzsch1-72/+33
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: make a couple of methods private to signal internal useMarcus Fritzsch1-0/+21
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: add enqueue_flushdraw() and check_flushdraw()Marcus Fritzsch1-13/+26
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: do some clang-formatMarcus Fritzsch1-20/+20
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: rename api call implementations to api_*Marcus Fritzsch1-11/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app/binding: implement crude syndraw/enddraw/flushdraw sequenceMarcus Fritzsch1-6/+31
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: std::move() optional wrapped values out of thereMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: thoroughly check LayoutState availability in activate tooMarcus Fritzsch1-1/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: be more thorough when checking surface-associated LayoutStateMarcus Fritzsch1-1/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: take local copies of some optional<> wrapped values.Marcus Fritzsch1-6/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: emit_flushdraw() should actually emit a flushdraw event.Marcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: remove some superflous debuglog()Marcus Fritzsch1-5/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: check layer <-> surface assoc more thoroughlyMarcus Fritzsch1-3/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App/layers: deactivate surfaces on layers above.Marcus Fritzsch1-56/+72
* When activating a surface on layer x, all surfaces on all layers above this will be deactivated. * Remove main_surface special case (we get the same result by putting the main_surface on the bottom layer). * Track LayoutState per layer, make can_split() accept this layer-local LayoutState for its decision. * Sort layers on load according to their ID. That is, do not make use Of the layer's z-order attribute, also there is no need to. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: special-case (de)activation for main_surfaceMarcus Fritzsch1-3/+27
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: emit syncdraw and flushdraw eventsMarcus Fritzsch1-20/+41
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: remove unsused surface ref in activate_surface()Marcus Fritzsch1-12/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: do not inline assignmentsMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app/layers: consolidate signed/unsigned usageMarcus Fritzsch1-38/+28
* Also make use of optional's operator* where appropriate. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app/layout: fix split layout from and to transitionsMarcus Fritzsch1-73/+54
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12binding: make the pending_events functionality nicer[tm]Marcus Fritzsch1-5/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12binding: ping() dispatches only pending eventsMarcus Fritzsch1-3/+11
* Also, move binding_m mutex to the binding glue. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app/main: dispatch wayland events using ping(), WIP on split layoutMarcus Fritzsch1-27/+203
* Dispatch ayland events with ping() API call, after having read events from wayland fd - in order to prevent indefinite-poll on wrongly read+ dispatch from multiple threads (dispatcher and API call). * Add scope trace to all API call thunks. * Split layout advancements, still broken AF though. * Add App1 example split layout to App layer. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: remove last remnants of obsolete layout configMarcus Fritzsch1-57/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12WIP split layouts, reading config, defining data layout.Marcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App/binding: move binding_api impl to its own source file.Marcus Fritzsch1-73/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: emit visibility eventsMarcus Fritzsch1-6/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: be a little more thorough when activating a surfaceMarcus Fritzsch1-1/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: only activate/deactivate if necessaryMarcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: remove unimplemented (stubbed) binding API methodsMarcus Fritzsch1-12/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: some quality improvements, add activate/deactivate helperMarcus Fritzsch1-24/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-05App: remove last_active logicMarcus Fritzsch1-37/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: cleanup requestSurface API method.Marcus Fritzsch1-3/+3
* Use lookup_id(). * Do not call activate_surface() as the surface does not yet exist. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: emit activated and deactivated eventsMarcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04App: cleanup name/id mapping and its reverseMarcus Fritzsch1-51/+32
* 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>
2017-09-04App/API: fix event emission methodsMarcus Fritzsch1-4/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04app: remove previous work around experiments, add one that fixes HomeScreenMarcus Fritzsch1-21/+44
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>