| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 switches::kEnableSandboxLogging, | 130 switches::kEnableSandboxLogging, |
| 131 switches::kShowMacOverlayBorders, | 131 switches::kShowMacOverlayBorders, |
| 132 #endif | 132 #endif |
| 133 #if defined(USE_AURA) | 133 #if defined(USE_AURA) |
| 134 switches::kUIPrioritizeInGpuProcess, | 134 switches::kUIPrioritizeInGpuProcess, |
| 135 #endif | 135 #endif |
| 136 #if defined(USE_OZONE) | 136 #if defined(USE_OZONE) |
| 137 switches::kOzonePlatform, | 137 switches::kOzonePlatform, |
| 138 #endif | 138 #endif |
| 139 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 139 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 140 switches::kWindowDepth, |
| 140 switches::kX11Display, | 141 switches::kX11Display, |
| 141 #endif | 142 #endif |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 enum GPUProcessLifetimeEvent { | 145 enum GPUProcessLifetimeEvent { |
| 145 LAUNCHED, | 146 LAUNCHED, |
| 146 DIED_FIRST_TIME, | 147 DIED_FIRST_TIME, |
| 147 DIED_SECOND_TIME, | 148 DIED_SECOND_TIME, |
| 148 DIED_THIRD_TIME, | 149 DIED_THIRD_TIME, |
| 149 DIED_FOURTH_TIME, | 150 DIED_FOURTH_TIME, |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1164 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1164 ClientIdToShaderCacheMap::iterator iter = | 1165 ClientIdToShaderCacheMap::iterator iter = |
| 1165 client_id_to_shader_cache_.find(client_id); | 1166 client_id_to_shader_cache_.find(client_id); |
| 1166 // If the cache doesn't exist then this is an off the record profile. | 1167 // If the cache doesn't exist then this is an off the record profile. |
| 1167 if (iter == client_id_to_shader_cache_.end()) | 1168 if (iter == client_id_to_shader_cache_.end()) |
| 1168 return; | 1169 return; |
| 1169 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1170 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1170 } | 1171 } |
| 1171 | 1172 |
| 1172 } // namespace content | 1173 } // namespace content |
| OLD | NEW |