| 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 #include "chrome/browser/gpu_process_host.h" | 5 #include "content/browser/gpu_process_host.h" |
| 6 | 6 |
| 7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
| 11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "chrome/browser/browser_thread.h" | |
| 13 #include "chrome/browser/gpu_process_host_ui_shim.h" | 12 #include "chrome/browser/gpu_process_host_ui_shim.h" |
| 14 #include "chrome/browser/renderer_host/render_widget_host.h" | |
| 15 #include "chrome/browser/renderer_host/render_widget_host_view.h" | |
| 16 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 13 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
| 17 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/gpu_feature_flags.h" | 15 #include "chrome/common/gpu_feature_flags.h" |
| 19 #include "chrome/common/gpu_info.h" | 16 #include "chrome/common/gpu_info.h" |
| 20 #include "chrome/common/gpu_messages.h" | 17 #include "chrome/common/gpu_messages.h" |
| 21 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
| 22 #include "chrome/gpu/gpu_thread.h" | 19 #include "chrome/gpu/gpu_thread.h" |
| 20 #include "content/browser/browser_thread.h" |
| 21 #include "content/browser/renderer_host/render_widget_host.h" |
| 22 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 23 #include "ipc/ipc_channel_handle.h" | 23 #include "ipc/ipc_channel_handle.h" |
| 24 #include "ipc/ipc_switches.h" | 24 #include "ipc/ipc_switches.h" |
| 25 #include "media/base/media_switches.h" | 25 #include "media/base/media_switches.h" |
| 26 | 26 |
| 27 #if defined(OS_LINUX) | 27 #if defined(OS_LINUX) |
| 28 #include "ui/gfx/gtk_native_view_id_manager.h" | 28 #include "ui/gfx/gtk_native_view_id_manager.h" |
| 29 #endif // defined(OS_LINUX) | 29 #endif // defined(OS_LINUX) |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 #elif defined(OS_POSIX) | 278 #elif defined(OS_POSIX) |
| 279 false, // Never use the zygote (GPU plugin can't be sandboxed). | 279 false, // Never use the zygote (GPU plugin can't be sandboxed). |
| 280 base::environment_vector(), | 280 base::environment_vector(), |
| 281 #endif | 281 #endif |
| 282 cmd_line); | 282 cmd_line); |
| 283 | 283 |
| 284 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", | 284 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", |
| 285 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); | 285 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); |
| 286 return true; | 286 return true; |
| 287 } | 287 } |
| OLD | NEW |