| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 switches::kEnableSandboxLogging, | 134 switches::kEnableSandboxLogging, |
| 135 switches::kShowMacOverlayBorders, | 135 switches::kShowMacOverlayBorders, |
| 136 #endif | 136 #endif |
| 137 #if defined(USE_OZONE) | 137 #if defined(USE_OZONE) |
| 138 switches::kOzonePlatform, | 138 switches::kOzonePlatform, |
| 139 #endif | 139 #endif |
| 140 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 140 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 141 switches::kWindowDepth, | 141 switches::kWindowDepth, |
| 142 switches::kX11Display, | 142 switches::kX11Display, |
| 143 #endif | 143 #endif |
| 144 switches::kGpuTestingGLVendor, |
| 145 switches::kGpuTestingGLRenderer, |
| 146 switches::kGpuTestingGLVersion, |
| 144 }; | 147 }; |
| 145 | 148 |
| 146 enum GPUProcessLifetimeEvent { | 149 enum GPUProcessLifetimeEvent { |
| 147 LAUNCHED, | 150 LAUNCHED, |
| 148 DIED_FIRST_TIME, | 151 DIED_FIRST_TIME, |
| 149 DIED_SECOND_TIME, | 152 DIED_SECOND_TIME, |
| 150 DIED_THIRD_TIME, | 153 DIED_THIRD_TIME, |
| 151 DIED_FOURTH_TIME, | 154 DIED_FOURTH_TIME, |
| 152 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 | 155 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 |
| 153 }; | 156 }; |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1153 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1151 ClientIdToShaderCacheMap::iterator iter = | 1154 ClientIdToShaderCacheMap::iterator iter = |
| 1152 client_id_to_shader_cache_.find(client_id); | 1155 client_id_to_shader_cache_.find(client_id); |
| 1153 // If the cache doesn't exist then this is an off the record profile. | 1156 // If the cache doesn't exist then this is an off the record profile. |
| 1154 if (iter == client_id_to_shader_cache_.end()) | 1157 if (iter == client_id_to_shader_cache_.end()) |
| 1155 return; | 1158 return; |
| 1156 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1159 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1157 } | 1160 } |
| 1158 | 1161 |
| 1159 } // namespace content | 1162 } // namespace content |
| OLD | NEW |