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 <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #endif | 104 #endif |
105 switches::kEnableHeapProfiling, | 105 switches::kEnableHeapProfiling, |
106 switches::kEnableLogging, | 106 switches::kEnableLogging, |
107 switches::kEnableShareGroupAsyncTextureUpload, | 107 switches::kEnableShareGroupAsyncTextureUpload, |
108 #if defined(OS_ANDROID) | 108 #if defined(OS_ANDROID) |
109 switches::kEnableUnifiedMediaPipeline, | 109 switches::kEnableUnifiedMediaPipeline, |
110 #endif | 110 #endif |
111 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
112 switches::kDisableVaapiAcceleratedVideoEncode, | 112 switches::kDisableVaapiAcceleratedVideoEncode, |
113 #endif | 113 #endif |
| 114 switches::kGpuVendorID, |
| 115 switches::kGpuDeviceID, |
| 116 switches::kGpuDriverVendor, |
| 117 switches::kGpuDriverVersion, |
114 switches::kGpuStartupDialog, | 118 switches::kGpuStartupDialog, |
115 switches::kGpuSandboxAllowSysVShm, | 119 switches::kGpuSandboxAllowSysVShm, |
116 switches::kGpuSandboxFailuresFatal, | 120 switches::kGpuSandboxFailuresFatal, |
117 switches::kGpuSandboxStartEarly, | 121 switches::kGpuSandboxStartEarly, |
118 switches::kLoggingLevel, | 122 switches::kLoggingLevel, |
119 switches::kEnableLowEndDeviceMode, | 123 switches::kEnableLowEndDeviceMode, |
120 switches::kDisableLowEndDeviceMode, | 124 switches::kDisableLowEndDeviceMode, |
121 switches::kEnableMemoryBenchmarking, | 125 switches::kEnableMemoryBenchmarking, |
122 switches::kNoSandbox, | 126 switches::kNoSandbox, |
123 switches::kProfilerTiming, | 127 switches::kProfilerTiming, |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1183 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1180 ClientIdToShaderCacheMap::iterator iter = | 1184 ClientIdToShaderCacheMap::iterator iter = |
1181 client_id_to_shader_cache_.find(client_id); | 1185 client_id_to_shader_cache_.find(client_id); |
1182 // If the cache doesn't exist then this is an off the record profile. | 1186 // If the cache doesn't exist then this is an off the record profile. |
1183 if (iter == client_id_to_shader_cache_.end()) | 1187 if (iter == client_id_to_shader_cache_.end()) |
1184 return; | 1188 return; |
1185 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1189 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1186 } | 1190 } |
1187 | 1191 |
1188 } // namespace content | 1192 } // namespace content |
OLD | NEW |