| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 switches::kDisableNSCGLSurfaceApi, | 117 switches::kDisableNSCGLSurfaceApi, |
| 118 switches::kForceNSCGLSurfaceApi, | 118 switches::kForceNSCGLSurfaceApi, |
| 119 switches::kEnableSandboxLogging, | 119 switches::kEnableSandboxLogging, |
| 120 #endif | 120 #endif |
| 121 #if defined(USE_AURA) | 121 #if defined(USE_AURA) |
| 122 switches::kUIPrioritizeInGpuProcess, | 122 switches::kUIPrioritizeInGpuProcess, |
| 123 #endif | 123 #endif |
| 124 #if defined(USE_OZONE) | 124 #if defined(USE_OZONE) |
| 125 switches::kOzonePlatform, | 125 switches::kOzonePlatform, |
| 126 switches::kOzoneUseSurfaceless, | 126 switches::kOzoneUseSurfaceless, |
| 127 switches::kOzoneUseIntelDrm, |
| 127 #endif | 128 #endif |
| 128 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 129 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 129 switches::kX11Display, | 130 switches::kX11Display, |
| 130 #endif | 131 #endif |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 enum GPUProcessLifetimeEvent { | 134 enum GPUProcessLifetimeEvent { |
| 134 LAUNCHED, | 135 LAUNCHED, |
| 135 DIED_FIRST_TIME, | 136 DIED_FIRST_TIME, |
| 136 DIED_SECOND_TIME, | 137 DIED_SECOND_TIME, |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1137 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1137 ClientIdToShaderCacheMap::iterator iter = | 1138 ClientIdToShaderCacheMap::iterator iter = |
| 1138 client_id_to_shader_cache_.find(client_id); | 1139 client_id_to_shader_cache_.find(client_id); |
| 1139 // If the cache doesn't exist then this is an off the record profile. | 1140 // If the cache doesn't exist then this is an off the record profile. |
| 1140 if (iter == client_id_to_shader_cache_.end()) | 1141 if (iter == client_id_to_shader_cache_.end()) |
| 1141 return; | 1142 return; |
| 1142 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1143 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1143 } | 1144 } |
| 1144 | 1145 |
| 1145 } // namespace content | 1146 } // namespace content |
| OLD | NEW |