OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if defined(OS_WIN) | 5 #if defined(OS_WIN) |
6 #include <windows.h> | 6 #include <windows.h> |
7 #endif | 7 #endif |
8 | 8 |
9 #include "content/browser/gpu_process_host.h" | 9 #include "content/browser/gpu_process_host.h" |
10 | 10 |
11 #include "app/app_switches.h" | 11 #include "app/app_switches.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/string_piece.h" | 14 #include "base/string_piece.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "chrome/browser/gpu_process_host_ui_shim.h" | 16 #include "chrome/browser/gpu_process_host_ui_shim.h" |
17 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 17 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/gpu_feature_flags.h" | 19 #include "chrome/common/gpu_feature_flags.h" |
20 #include "chrome/common/gpu_messages.h" | |
21 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
22 #include "chrome/gpu/gpu_thread.h" | 21 #include "chrome/gpu/gpu_thread.h" |
23 #include "content/browser/browser_thread.h" | 22 #include "content/browser/browser_thread.h" |
24 #include "content/browser/renderer_host/render_widget_host.h" | 23 #include "content/browser/renderer_host/render_widget_host.h" |
25 #include "content/browser/renderer_host/render_widget_host_view.h" | 24 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 25 #include "content/common/gpu_messages.h" |
26 #include "ipc/ipc_channel_handle.h" | 26 #include "ipc/ipc_channel_handle.h" |
27 #include "ipc/ipc_switches.h" | 27 #include "ipc/ipc_switches.h" |
28 #include "media/base/media_switches.h" | 28 #include "media/base/media_switches.h" |
29 | 29 |
30 #if defined(OS_LINUX) | 30 #if defined(OS_LINUX) |
31 #include "ui/gfx/gtk_native_view_id_manager.h" | 31 #include "ui/gfx/gtk_native_view_id_manager.h" |
32 #endif // defined(OS_LINUX) | 32 #endif // defined(OS_LINUX) |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 #elif defined(OS_POSIX) | 310 #elif defined(OS_POSIX) |
311 false, // Never use the zygote (GPU plugin can't be sandboxed). | 311 false, // Never use the zygote (GPU plugin can't be sandboxed). |
312 base::environment_vector(), | 312 base::environment_vector(), |
313 #endif | 313 #endif |
314 cmd_line); | 314 cmd_line); |
315 | 315 |
316 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", | 316 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", |
317 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); | 317 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); |
318 return true; | 318 return true; |
319 } | 319 } |
OLD | NEW |