Commit graph

181 commits

Author SHA1 Message Date
Simon Fels
06b3683ea4 Force host EGL on devices running with the nvidia driver 2017-02-09 12:04:17 +01:00
Simon Fels
64466fb234 Blacklist EGL_EXT_buffer_age extension to make nvidia users happy 2017-02-09 12:03:49 +01:00
Simon Fels
e0091c764b Allow using a different data path for container setup 2017-02-07 12:12:23 +01:00
Simon Fels
c3b2e88960 Print error on startup when binder/ashmem are missing and fail 2017-02-07 12:12:23 +01:00
Simon Fels
30c2186826 Abstract selector of translator or host GL libs a bit more 2017-02-06 07:12:10 +01:00
Simon Fels
d12aad5c01 Merge pull request #34 from morphis/feature/minor-fixes
A few minor fixes to clean things up a bit
2017-02-03 08:04:09 +01:00
Simon Fels
e2f51b80a1 Rework stream usage for desktop/icon file creation 2017-02-02 12:37:49 +01:00
Simon Fels
e1aff4727b Merge pull request #35 from morphis/feature/refactor-config
Refactor configuration to be more dynamic
2017-01-31 14:18:11 +01:00
Simon Fels
fb6277f9a8 Refactor configuration to be more dynamic 2017-01-31 08:48:55 +01:00
Simon Fels
1459488bd3 Drop old and unneeded icon flag for run command 2017-01-31 08:47:57 +01:00
Simon Fels
f9d95172c4 Adjust indentation of launcher storage 2017-01-31 08:46:07 +01:00
Simon Fels
0aa311c69f Use provided linker flags from pkgconfig in our build 2017-01-27 07:12:19 +01:00
Simon Fels
c9c3155e96 emugl: use our internal logger instead of the emugl one 2017-01-20 08:38:38 +01:00
Simon Fels
c199e519ba qemud: send message size in hexadecimal format
All sizes need to be printed in hexadecimal. Otherwise size of the
actual data doesn't match and messages are not processed inside the
container.
2017-01-20 07:35:18 +01:00
Simon Fels
b1edee8a11 Merge pull request #22 from vosst/fix-build
Fix build with warnings turned on.
2017-01-20 07:23:20 +01:00
Thomas Voß
4d457153b7 Fix build with warnings turned on. 2017-01-19 20:36:01 +01:00
Thomas Voß
f98239c70d Support positional arguments.
Please note that this feature requires a reecent boost version, ideally 1.57 or
later.
2017-01-19 18:40:37 +01:00
Simon Fels
8e262fe5c7 LayerComposer: always prioritize layers which are lower in the list 2017-01-18 07:49:08 +01:00
Simon Fels
975b0d12b2 LayerComposer: correct formatting of rect calculation 2017-01-18 07:48:12 +01:00
Simon Fels
87b918375d Use the app package name as window title for now 2017-01-17 18:26:16 +01:00
Simon Fels
ab473fd174 Reset launcher storage before updating it 2017-01-17 18:25:36 +01:00
Simon Fels
db3499fd89 Synchronize clipboard bi-directional with the android container 2017-01-15 12:38:22 +01:00
Simon Fels
5512f79941 Populate rpc response data properly 2017-01-15 12:38:06 +01:00
Simon Fels
d729b8b9e4 Implement audio support
Audio playback still has a delay about 1-2 seconds but it's usable.

This also moves the platform policy class into its own namespace to be
not specific to just window management.
2017-01-12 07:02:43 +01:00
Simon Fels
5c7b0adf8c Synchronize application icons with the host 2017-01-06 18:33:27 +01:00
Simon Fels
bd48e95d2b Error out early when container manager is not available 2017-01-03 12:28:18 +01:00
Simon Fels
6307ee4b65 Reformat all code parts 2017-01-03 09:18:10 +01:00
Simon Fels
a5993a7023 Fix formatting of comment 2017-01-03 09:15:22 +01:00
Simon Fels
7e80f282a0 Don't send exception when already stopped container can't be stopped again 2017-01-03 09:13:06 +01:00
Simon Fels
d11a281d6c Terminate process when container manager disconnects or container start fails 2017-01-03 09:12:19 +01:00
Simon Fels
7a2cef31da Run container as unprivileged for enhanced security
On the Android side this requires no change with the current setup.
2017-01-03 09:11:10 +01:00
Simon Fels
128cc2422d Add unit tests for LayerComposer 2016-12-23 15:40:33 +01:00
Simon Fels
dbbb8ab795 Add unit tests for BufferedIOStream 2016-12-23 15:40:33 +01:00
Simon Fels
3529b83753 Add unit tests for imported things from Android emulator 2016-12-23 15:40:33 +01:00
Simon Fels
f7cabbf8ff Use largest layer of a window to calculate relative layer positions
As a window can be built out of multiple layers we need to take one as
the primary one which covers the entire window area. As it is not
guranteed that the layer size will match the actual window size cause
of synchronizaton delays with the Android side window manager we take
the layer as primary which covers the largest screen area. This should
solve most issues.
2016-12-23 15:38:35 +01:00
Simon Fels
3d051a4056 Update window frame when window is moved rathern when state was updated
This leads to incorrect calculations of the layer position calculation
inside the window.
2016-12-22 08:33:33 +01:00
Simon Fels
c4664603fd Check errno correctly for errors to ignore 2016-12-21 10:32:07 +01:00
Simon Fels
9f69c580af Get rid of renderer singleton 2016-12-21 10:02:02 +01:00
Simon Fels
aeff6e35df Cleanup formatting and code style 2016-12-21 08:40:40 +01:00
Simon Fels
3e70f5a548 Don't require alpha bits for the renderer config
This prevents certain client applications in the container to work.
2016-12-21 08:40:40 +01:00
Simon Fels
7ce2da3be3 Rework client renderer setup
This gets us rid of one unneeded socket based communication point which
we kept around for historic reasons (from Android QEMU) but don't really
need in our case. This allows a simplication of our setup and improves
performance.
2016-12-21 08:40:40 +01:00
Simon Fels
324407eeaa Allow clients to specify the launch bounds of a new activity 2016-12-21 08:39:44 +01:00
Simon Fels
14d8bb2390 Calculate correct texture coordinates on created primitives 2016-12-19 09:17:11 +01:00
Simon Fels
4e72494aeb Calculate correct relative position for all renderables 2016-12-19 09:16:44 +01:00
Simon Fels
a3151b6a07 Calculate display bounds for all available displays
The hwcomposer module for Android doesn't support multi-monitor well
enough for our use case yet so we give Android a large enough primary
display. This may have negative effects performance wise for the until
we disabled all non freeform stack and wallpaper related rendering on
the Android side so that only visible windows are drawn to not waste
any GPU cycles on things we don't render anyway.
2016-12-19 08:00:50 +01:00
Simon Fels
009cbb3402 Don't stop SDL event processing thread when it is not running 2016-12-19 08:00:16 +01:00
Simon Fels
2f849059c2 Correct texture and frame size calculation to be correct in offscreen areas 2016-12-19 07:21:12 +01:00
Simon Fels
abb0497a5d Cleanup formatting 2016-12-15 09:20:36 +01:00
Simon Fels
4ec5f8f313 Drop superflous debug log message 2016-12-15 08:49:11 +01:00
Simon Fels
03583e360c Get rid of unwanted debug message 2016-12-08 17:07:36 +01:00