Include common/platform.h where used

Bug: 922443
Change-Id: I35b9e34266d4a15f8d0769c2770801b1b0511398
Reviewed-on: https://chromium-review.googlesource.com/c/1418091
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
diff --git a/src/common/aligned_memory.cpp b/src/common/aligned_memory.cpp
index 9132807..70a730e 100644
--- a/src/common/aligned_memory.cpp
+++ b/src/common/aligned_memory.cpp
@@ -9,6 +9,7 @@
 #include "common/aligned_memory.h"
 
 #include "common/debug.h"
+#include "common/platform.h"
 
 #if defined(COMPILER_MSVC)
 #    include <malloc.h>
diff --git a/src/common/debug.h b/src/common/debug.h
index 972a748..322b7fe 100644
--- a/src/common/debug.h
+++ b/src/common/debug.h
@@ -19,6 +19,7 @@
 #include <string>
 
 #include "common/angleutils.h"
+#include "common/platform.h"
 
 #if !defined(TRACE_OUTPUT_FILE)
 #    define TRACE_OUTPUT_FILE "angle_debug.txt"
diff --git a/src/common/utilities.h b/src/common/utilities.h
index 8f22498..9dcb06e 100644
--- a/src/common/utilities.h
+++ b/src/common/utilities.h
@@ -20,6 +20,7 @@
 
 #include "common/PackedEnums.h"
 #include "common/mathutil.h"
+#include "common/platform.h"
 
 namespace sh
 {
diff --git a/src/libANGLE/renderer/gl/renderergl_utils.cpp b/src/libANGLE/renderer/gl/renderergl_utils.cpp
index 57b61ad..93d4d7f 100644
--- a/src/libANGLE/renderer/gl/renderergl_utils.cpp
+++ b/src/libANGLE/renderer/gl/renderergl_utils.cpp
@@ -12,6 +12,7 @@
 #include <limits>
 
 #include "common/mathutil.h"
+#include "common/platform.h"
 #include "libANGLE/Buffer.h"
 #include "libANGLE/Caps.h"
 #include "libANGLE/Context.h"
diff --git a/src/libANGLE/renderer/vulkan/RendererVk.cpp b/src/libANGLE/renderer/vulkan/RendererVk.cpp
index f746742..43689c0 100644
--- a/src/libANGLE/renderer/vulkan/RendererVk.cpp
+++ b/src/libANGLE/renderer/vulkan/RendererVk.cpp
@@ -15,6 +15,7 @@
 #include <EGL/eglext.h>
 
 #include "common/debug.h"
+#include "common/platform.h"
 #include "common/system_utils.h"
 #include "libANGLE/Display.h"
 #include "libANGLE/renderer/driver_utils.h"
diff --git a/src/tests/egl_tests/EGLSurfaceTest.cpp b/src/tests/egl_tests/EGLSurfaceTest.cpp
index 68fe54e..73da113 100644
--- a/src/tests/egl_tests/EGLSurfaceTest.cpp
+++ b/src/tests/egl_tests/EGLSurfaceTest.cpp
@@ -11,6 +11,7 @@
 
 #include <vector>
 
+#include "common/platform.h"
 #include "test_utils/ANGLETest.h"
 #include "util/EGLWindow.h"
 #include "util/OSWindow.h"
diff --git a/src/tests/perf_tests/ANGLEPerfTest.cpp b/src/tests/perf_tests/ANGLEPerfTest.cpp
index d730199..794742f 100644
--- a/src/tests/perf_tests/ANGLEPerfTest.cpp
+++ b/src/tests/perf_tests/ANGLEPerfTest.cpp
@@ -9,6 +9,7 @@
 
 #include "ANGLEPerfTest.h"
 
+#include "common/platform.h"
 #include "third_party/perf/perf_test.h"
 #include "util/shader_utils.h"
 #include "util/system_utils.h"
diff --git a/src/tests/perf_tests/EGLMakeCurrentPerf.cpp b/src/tests/perf_tests/EGLMakeCurrentPerf.cpp
index f596a7d..6a4aa93 100644
--- a/src/tests/perf_tests/EGLMakeCurrentPerf.cpp
+++ b/src/tests/perf_tests/EGLMakeCurrentPerf.cpp
@@ -8,6 +8,7 @@
 //
 
 #include "ANGLEPerfTest.h"
+#include "common/platform.h"
 #include "platform/Platform.h"
 #include "test_utils/angle_test_configs.h"
 #include "test_utils/angle_test_instantiate.h"
diff --git a/src/tests/perf_tests/VulkanCommandBufferPerf.cpp b/src/tests/perf_tests/VulkanCommandBufferPerf.cpp
index 2d8183a..a562593 100644
--- a/src/tests/perf_tests/VulkanCommandBufferPerf.cpp
+++ b/src/tests/perf_tests/VulkanCommandBufferPerf.cpp
@@ -6,6 +6,7 @@
 //   Performance benchmark for Vulkan Primary/Secondary Command Buffer implementations.
 
 #include "ANGLEPerfTest.h"
+#include "common/platform.h"
 #include "test_utils/third_party/vulkan_command_buffer_utils.h"
 
 constexpr char kVertShaderText[] = R"(
diff --git a/src/tests/test_utils/ANGLETest.cpp b/src/tests/test_utils/ANGLETest.cpp
index 0a66689..1a855f3 100644
--- a/src/tests/test_utils/ANGLETest.cpp
+++ b/src/tests/test_utils/ANGLETest.cpp
@@ -9,6 +9,7 @@
 
 #include "ANGLETest.h"
 
+#include "common/platform.h"
 #include "util/EGLWindow.h"
 #include "util/OSWindow.h"
 
diff --git a/src/tests/test_utils/angle_test_configs.cpp b/src/tests/test_utils/angle_test_configs.cpp
index 7f48a57..0530486 100644
--- a/src/tests/test_utils/angle_test_configs.cpp
+++ b/src/tests/test_utils/angle_test_configs.cpp
@@ -6,6 +6,7 @@
 
 #include "test_utils/angle_test_configs.h"
 
+#include "common/platform.h"
 #include "util/util_gl.h"
 
 namespace angle
diff --git a/src/tests/test_utils/angle_test_instantiate.cpp b/src/tests/test_utils/angle_test_instantiate.cpp
index de64e67..0b5dd73 100644
--- a/src/tests/test_utils/angle_test_instantiate.cpp
+++ b/src/tests/test_utils/angle_test_instantiate.cpp
@@ -13,6 +13,7 @@
 #include <map>
 
 #include "angle_gl.h"
+#include "common/platform.h"
 #include "test_utils/angle_test_configs.h"
 #include "util/EGLWindow.h"
 #include "util/OSWindow.h"