diff options
author | Yiwei Zhang <zzyiwei@chromium.org> | 2021-10-07 18:46:49 +0000 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-10-09 00:42:32 +0000 |
commit | 2881b43d2c3253d43c53d1c2c83638fb6eae95b9 (patch) | |
tree | 41939a402531e4160c218971973fcca8236606d7 /src/android_stub | |
parent | 8ebf0d1105ed8c7860e65094708556ace7b394bf (diff) | |
download | mesa-2881b43d2c3253d43c53d1c2c83638fb6eae95b9.tar.gz |
android_stub: update platform headers to include atrace
1. Add tracing headers
2. Update to reflect relocated headers
3. Remove redundant apex/window.h
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13255>
Diffstat (limited to 'src/android_stub')
-rw-r--r-- | src/android_stub/cutils_stub.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/android_stub/cutils_stub.cpp b/src/android_stub/cutils_stub.cpp index b660ec9d6d7..449ae26732b 100644 --- a/src/android_stub/cutils_stub.cpp +++ b/src/android_stub/cutils_stub.cpp @@ -1,10 +1,32 @@ #include <cutils/properties.h> +#include <cutils/trace.h> extern "C" { -int property_get(const char* key, char* value, const char* default_value) +int +property_get(const char *key, char *value, const char *default_value) { return 0; } +void +atrace_begin_body(const char * /*name*/) +{ +} + +void +atrace_end_body() +{ +} + +void +atrace_init() +{ +} + +uint64_t +atrace_get_enabled_tags() +{ + return ATRACE_TAG_NOT_READY; +} } |