commit | 715575eda339c0955c730ff9d8b8799685132db7 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Sun Jun 21 12:26:24 2020 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Sun Jun 21 16:46:17 2020 -0700 |
tree | de9aa97f38e7fc1891347ebc4543abc8802d960e | |
parent | 84d91fd332bb59d01b3c2cdcd39c298bfef45026 [diff] |
Exits evs_app gracefully This change implements a few changes to exit evs_app gracefully when it receives SIGINT, SIGABRT, or SIGTERM. In its signal handler, evs_app issues a command to stop a rendering thread and deactivates the renderer in use. Also, EVS HAL reference implementation explicitly hides the current rendering window before shutting down its GL wrapper. Fix: 156435029 Test: Run /system/bin/evs_app --test --display 0 and send SIGINT or SIGABRT Change-Id: I8145dc6a4d30cbcaed6dd0c15921a1970cd6fb8f
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.