aboutsummaryrefslogtreecommitdiffstats
path: root/system/OpenglSystemCommon/HostConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'system/OpenglSystemCommon/HostConnection.cpp')
-rw-r--r--system/OpenglSystemCommon/HostConnection.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp
index 7d309fbd..7ddf277f 100644
--- a/system/OpenglSystemCommon/HostConnection.cpp
+++ b/system/OpenglSystemCommon/HostConnection.cpp
@@ -17,6 +17,10 @@
#include "cutils/properties.h"
+#ifdef HOST_BUILD
+#include "android/base/Tracing.h"
+#endif
+
#ifdef GOLDFISH_NO_GL
struct gl_client_context_t {
int placeholder;
@@ -359,7 +363,11 @@ HostConnection::HostConnection() :
m_grallocOnly(true),
m_noHostError(true),
m_rendernodeFd(-1),
- m_rendernodeFdOwned(false) { }
+ m_rendernodeFdOwned(false) {
+#ifdef HOST_BUILD
+ android::base::initializeTracing();
+#endif
+}
HostConnection::~HostConnection()
{