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" | |
72 #include "ui/gl/gl_switches.h" | 71 #include "ui/gl/gl_switches.h" |
73 | 72 |
74 #if defined(OS_ANDROID) | 73 #if defined(OS_ANDROID) |
75 #include "base/android/build_info.h" | 74 #include "base/android/build_info.h" |
76 #endif | 75 #endif |
77 | 76 |
78 #if defined(OS_WIN) | 77 #if defined(OS_WIN) |
79 #include "base/win/windows_version.h" | 78 #include "base/win/windows_version.h" |
80 #include "content/common/sandbox_win.h" | 79 #include "content/common/sandbox_win.h" |
81 #include "sandbox/win/src/sandbox_policy.h" | 80 #include "sandbox/win/src/sandbox_policy.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 switches::kEnableHeapProfiling, | 127 switches::kEnableHeapProfiling, |
129 switches::kEnableLogging, | 128 switches::kEnableLogging, |
130 #if defined(OS_CHROMEOS) | 129 #if defined(OS_CHROMEOS) |
131 switches::kDisableVaapiAcceleratedVideoEncode, | 130 switches::kDisableVaapiAcceleratedVideoEncode, |
132 #endif | 131 #endif |
133 switches::kGpuDriverBugWorkarounds, | 132 switches::kGpuDriverBugWorkarounds, |
134 switches::kGpuStartupDialog, | 133 switches::kGpuStartupDialog, |
135 switches::kGpuSandboxAllowSysVShm, | 134 switches::kGpuSandboxAllowSysVShm, |
136 switches::kGpuSandboxFailuresFatal, | 135 switches::kGpuSandboxFailuresFatal, |
137 switches::kGpuSandboxStartEarly, | 136 switches::kGpuSandboxStartEarly, |
138 switches::kHeadless, | |
139 switches::kLoggingLevel, | 137 switches::kLoggingLevel, |
140 switches::kEnableLowEndDeviceMode, | 138 switches::kEnableLowEndDeviceMode, |
141 switches::kDisableLowEndDeviceMode, | 139 switches::kDisableLowEndDeviceMode, |
142 switches::kEnableMemoryBenchmarking, | 140 switches::kEnableMemoryBenchmarking, |
143 switches::kNoSandbox, | 141 switches::kNoSandbox, |
144 switches::kProfilerTiming, | 142 switches::kProfilerTiming, |
145 switches::kTestGLLib, | 143 switches::kTestGLLib, |
146 switches::kTraceConfigFile, | 144 switches::kTraceConfigFile, |
147 switches::kTraceStartup, | 145 switches::kTraceStartup, |
148 switches::kTraceToConsole, | 146 switches::kTraceToConsole, |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1195 ClientIdToShaderCacheMap::iterator iter = | 1193 ClientIdToShaderCacheMap::iterator iter = |
1196 client_id_to_shader_cache_.find(client_id); | 1194 client_id_to_shader_cache_.find(client_id); |
1197 // If the cache doesn't exist then this is an off the record profile. | 1195 // If the cache doesn't exist then this is an off the record profile. |
1198 if (iter == client_id_to_shader_cache_.end()) | 1196 if (iter == client_id_to_shader_cache_.end()) |
1199 return; | 1197 return; |
1200 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1201 } | 1199 } |
1202 | 1200 |
1203 } // namespace content | 1201 } // namespace content |
OLD | NEW |