| Index: content/browser/gpu/gpu_process_host.cc
|
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
|
| index 9bf57997951c7f8e066b298ec22040004d323d7a..961b4d59888ed5774670a82326d26f3cf30846ea 100644
|
| --- a/content/browser/gpu/gpu_process_host.cc
|
| +++ b/content/browser/gpu/gpu_process_host.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/bind.h"
|
| #include "base/callback_helpers.h"
|
| #include "base/command_line.h"
|
| +#include "base/files/file_util.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| @@ -259,6 +260,18 @@ class GpuSandboxedProcessLauncherDelegate
|
| }
|
| }
|
|
|
| + // Enable GPU watchdog to write to a temp file to test whether I/O
|
| + // is a bottleneck.
|
| + base::FilePath temp_dir_path;
|
| + if (GetTempDir(&temp_dir_path)) {
|
| + base::FilePath temp_file_path = temp_dir_path.Append(L"gpu-watchdog.tmp");
|
| + result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES,
|
| + sandbox::TargetPolicy::FILES_ALLOW_ANY,
|
| + temp_file_path.value().c_str());
|
| + if (result != sandbox::SBOX_ALL_OK)
|
| + return false;
|
| + }
|
| +
|
| return true;
|
| }
|
| #elif defined(OS_POSIX)
|
|
|