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 "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 #if defined(OS_CHROMEOS) | 101 #if defined(OS_CHROMEOS) |
102 switches::kDisableVaapiAcceleratedVideoEncode, | 102 switches::kDisableVaapiAcceleratedVideoEncode, |
103 #endif | 103 #endif |
104 switches::kGpuStartupDialog, | 104 switches::kGpuStartupDialog, |
105 switches::kGpuSandboxAllowSysVShm, | 105 switches::kGpuSandboxAllowSysVShm, |
106 switches::kGpuSandboxFailuresFatal, | 106 switches::kGpuSandboxFailuresFatal, |
107 switches::kGpuSandboxStartEarly, | 107 switches::kGpuSandboxStartEarly, |
108 switches::kLoggingLevel, | 108 switches::kLoggingLevel, |
109 switches::kEnableLowEndDeviceMode, | 109 switches::kEnableLowEndDeviceMode, |
110 switches::kDisableLowEndDeviceMode, | 110 switches::kDisableLowEndDeviceMode, |
| 111 switches::kEnableMemoryBenchmarking, |
111 switches::kNoSandbox, | 112 switches::kNoSandbox, |
112 switches::kProfilerTiming, | 113 switches::kProfilerTiming, |
113 switches::kTestGLLib, | 114 switches::kTestGLLib, |
114 switches::kTraceStartup, | 115 switches::kTraceStartup, |
115 switches::kTraceToConsole, | 116 switches::kTraceToConsole, |
116 switches::kV, | 117 switches::kV, |
117 switches::kVModule, | 118 switches::kVModule, |
118 #if defined(OS_MACOSX) | 119 #if defined(OS_MACOSX) |
119 switches::kDisableRemoteCoreAnimation, | 120 switches::kDisableRemoteCoreAnimation, |
120 switches::kDisableMacOverlays, | 121 switches::kDisableMacOverlays, |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1145 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1145 ClientIdToShaderCacheMap::iterator iter = | 1146 ClientIdToShaderCacheMap::iterator iter = |
1146 client_id_to_shader_cache_.find(client_id); | 1147 client_id_to_shader_cache_.find(client_id); |
1147 // If the cache doesn't exist then this is an off the record profile. | 1148 // If the cache doesn't exist then this is an off the record profile. |
1148 if (iter == client_id_to_shader_cache_.end()) | 1149 if (iter == client_id_to_shader_cache_.end()) |
1149 return; | 1150 return; |
1150 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1151 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1151 } | 1152 } |
1152 | 1153 |
1153 } // namespace content | 1154 } // namespace content |
OLD | NEW |