Index: content/gpu/gpu_main.cc |
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc |
index eebb732a6ecf032403aceece74c2d337e6646900..c6a59fc9c19c745e8eb5ad78dab52603d61b279b 100644 |
--- a/content/gpu/gpu_main.cc |
+++ b/content/gpu/gpu_main.cc |
@@ -62,6 +62,10 @@ |
#include "content/common/sandbox_mac.h" |
#endif |
+#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
+#include "content/common/gpu/media/vaapi_wrapper.h" |
+#endif |
+ |
#if defined(SANITIZER_COVERAGE) |
#include <sanitizer/common_interface_defs.h> |
#include <sanitizer/coverage_interface.h> |
@@ -218,6 +222,10 @@ int GpuMain(const MainFunctionParams& parameters) { |
// commandline switches. |
GetGpuInfoFromCommandLine(gpu_info, command_line); |
+#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
+ VaapiWrapper::PreSandboxInitialization(); |
+#endif |
+ |
// Warm up resources that don't need access to GPUInfo. |
if (WarmUpSandbox(command_line)) { |
#if defined(OS_LINUX) |