| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/gpu/gpu_process_host.h" | 5 #include "content/browser/gpu/gpu_process_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "ipc/ipc_channel_handle.h" | 61 #include "ipc/ipc_channel_handle.h" |
| 62 #include "ipc/message_filter.h" | 62 #include "ipc/message_filter.h" |
| 63 #include "media/base/media_switches.h" | 63 #include "media/base/media_switches.h" |
| 64 #include "media/media_features.h" | 64 #include "media/media_features.h" |
| 65 #include "mojo/edk/embedder/embedder.h" | 65 #include "mojo/edk/embedder/embedder.h" |
| 66 #include "services/service_manager/public/cpp/connection.h" | 66 #include "services/service_manager/public/cpp/connection.h" |
| 67 #include "services/service_manager/public/cpp/interface_provider.h" | 67 #include "services/service_manager/public/cpp/interface_provider.h" |
| 68 #include "services/service_manager/runner/common/client_util.h" | 68 #include "services/service_manager/runner/common/client_util.h" |
| 69 #include "ui/base/ui_base_switches.h" | 69 #include "ui/base/ui_base_switches.h" |
| 70 #include "ui/events/latency_info.h" | 70 #include "ui/events/latency_info.h" |
| 71 #include "ui/gfx/switches.h" |
| 71 #include "ui/gl/gl_switches.h" | 72 #include "ui/gl/gl_switches.h" |
| 72 | 73 |
| 73 #if defined(OS_ANDROID) | 74 #if defined(OS_ANDROID) |
| 74 #include "base/android/build_info.h" | 75 #include "base/android/build_info.h" |
| 75 #endif | 76 #endif |
| 76 | 77 |
| 77 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
| 78 #include "base/win/windows_version.h" | 79 #include "base/win/windows_version.h" |
| 79 #include "content/common/sandbox_win.h" | 80 #include "content/common/sandbox_win.h" |
| 80 #include "sandbox/win/src/sandbox_policy.h" | 81 #include "sandbox/win/src/sandbox_policy.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 switches::kEnableHeapProfiling, | 128 switches::kEnableHeapProfiling, |
| 128 switches::kEnableLogging, | 129 switches::kEnableLogging, |
| 129 #if defined(OS_CHROMEOS) | 130 #if defined(OS_CHROMEOS) |
| 130 switches::kDisableVaapiAcceleratedVideoEncode, | 131 switches::kDisableVaapiAcceleratedVideoEncode, |
| 131 #endif | 132 #endif |
| 132 switches::kGpuDriverBugWorkarounds, | 133 switches::kGpuDriverBugWorkarounds, |
| 133 switches::kGpuStartupDialog, | 134 switches::kGpuStartupDialog, |
| 134 switches::kGpuSandboxAllowSysVShm, | 135 switches::kGpuSandboxAllowSysVShm, |
| 135 switches::kGpuSandboxFailuresFatal, | 136 switches::kGpuSandboxFailuresFatal, |
| 136 switches::kGpuSandboxStartEarly, | 137 switches::kGpuSandboxStartEarly, |
| 138 switches::kHeadless, |
| 137 switches::kLoggingLevel, | 139 switches::kLoggingLevel, |
| 138 switches::kEnableLowEndDeviceMode, | 140 switches::kEnableLowEndDeviceMode, |
| 139 switches::kDisableLowEndDeviceMode, | 141 switches::kDisableLowEndDeviceMode, |
| 140 switches::kEnableMemoryBenchmarking, | 142 switches::kEnableMemoryBenchmarking, |
| 141 switches::kNoSandbox, | 143 switches::kNoSandbox, |
| 142 switches::kProfilerTiming, | 144 switches::kProfilerTiming, |
| 143 switches::kTestGLLib, | 145 switches::kTestGLLib, |
| 144 switches::kTraceConfigFile, | 146 switches::kTraceConfigFile, |
| 145 switches::kTraceStartup, | 147 switches::kTraceStartup, |
| 146 switches::kTraceToConsole, | 148 switches::kTraceToConsole, |
| (...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1194 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1193 ClientIdToShaderCacheMap::iterator iter = | 1195 ClientIdToShaderCacheMap::iterator iter = |
| 1194 client_id_to_shader_cache_.find(client_id); | 1196 client_id_to_shader_cache_.find(client_id); |
| 1195 // If the cache doesn't exist then this is an off the record profile. | 1197 // If the cache doesn't exist then this is an off the record profile. |
| 1196 if (iter == client_id_to_shader_cache_.end()) | 1198 if (iter == client_id_to_shader_cache_.end()) |
| 1197 return; | 1199 return; |
| 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1200 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1199 } | 1201 } |
| 1200 | 1202 |
| 1201 } // namespace content | 1203 } // namespace content |
| OLD | NEW |