| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 switches::kDisableRemoteCoreAnimation, | 131 switches::kDisableRemoteCoreAnimation, |
| 132 switches::kDisableMacOverlays, | 132 switches::kDisableMacOverlays, |
| 133 switches::kEnableSandboxLogging, | 133 switches::kEnableSandboxLogging, |
| 134 switches::kShowMacOverlayBorders, | 134 switches::kShowMacOverlayBorders, |
| 135 #endif | 135 #endif |
| 136 #if defined(USE_AURA) | 136 #if defined(USE_AURA) |
| 137 switches::kUIPrioritizeInGpuProcess, | 137 switches::kUIPrioritizeInGpuProcess, |
| 138 #endif | 138 #endif |
| 139 #if defined(USE_OZONE) | 139 #if defined(USE_OZONE) |
| 140 switches::kOzonePlatform, | 140 switches::kOzonePlatform, |
| 141 switches::kOzoneUseDmaBufMmap, |
| 141 #endif | 142 #endif |
| 142 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 143 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 143 switches::kWindowDepth, | 144 switches::kWindowDepth, |
| 144 switches::kX11Display, | 145 switches::kX11Display, |
| 145 #endif | 146 #endif |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 enum GPUProcessLifetimeEvent { | 149 enum GPUProcessLifetimeEvent { |
| 149 LAUNCHED, | 150 LAUNCHED, |
| 150 DIED_FIRST_TIME, | 151 DIED_FIRST_TIME, |
| (...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1146 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1146 ClientIdToShaderCacheMap::iterator iter = | 1147 ClientIdToShaderCacheMap::iterator iter = |
| 1147 client_id_to_shader_cache_.find(client_id); | 1148 client_id_to_shader_cache_.find(client_id); |
| 1148 // If the cache doesn't exist then this is an off the record profile. | 1149 // If the cache doesn't exist then this is an off the record profile. |
| 1149 if (iter == client_id_to_shader_cache_.end()) | 1150 if (iter == client_id_to_shader_cache_.end()) |
| 1150 return; | 1151 return; |
| 1151 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1152 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1152 } | 1153 } |
| 1153 | 1154 |
| 1154 } // namespace content | 1155 } // namespace content |
| OLD | NEW |