Fix the ANGLE_ENABLE_TRACE build.

We needed to include angleutils.cpp in libtranslator for this to
compile. Also allow the event helpers to record API calls even
if ANGLE_ENABLE_PERF is off.

BUG=angle:513

Change-Id: I2646d5ebeae536a4a7f1cd7ecaf0ce019ce5ff76
Reviewed-on: https://chromium-review.googlesource.com/219756
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
diff --git a/src/common/debug.cpp b/src/common/debug.cpp
index dcad327..41e8b00 100644
--- a/src/common/debug.cpp
+++ b/src/common/debug.cpp
@@ -87,7 +87,6 @@
 
 ScopedPerfEventHelper::ScopedPerfEventHelper(const char* format, ...)
 {
-#if defined(ANGLE_ENABLE_PERF)
 #if !defined(ANGLE_ENABLE_TRACE)
     if (!perfActive())
     {
@@ -96,9 +95,12 @@
 #endif // !ANGLE_ENABLE_TRACE
     va_list vararg;
     va_start(vararg, format);
+#if defined(ANGLE_ENABLE_PERF)
     output(true, reinterpret_cast<PerfOutputFunction>(D3DPERF_BeginEvent), format, vararg);
-    va_end(vararg);
+#else
+    output(true, NULL, format, vararg);
 #endif // ANGLE_ENABLE_PERF
+    va_end(vararg);
 }
 
 ScopedPerfEventHelper::~ScopedPerfEventHelper()