| 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 switches::kDisableBreakpad, | 974 switches::kDisableBreakpad, |
| 975 switches::kDisableGpuSandbox, | 975 switches::kDisableGpuSandbox, |
| 976 switches::kDisableGpuWatchdog, | 976 switches::kDisableGpuWatchdog, |
| 977 switches::kDisableLogging, | 977 switches::kDisableLogging, |
| 978 switches::kDisableSeccompFilterSandbox, | 978 switches::kDisableSeccompFilterSandbox, |
| 979 #if defined(ENABLE_WEBRTC) | 979 #if defined(ENABLE_WEBRTC) |
| 980 switches::kDisableWebRtcHWEncoding, | 980 switches::kDisableWebRtcHWEncoding, |
| 981 #endif | 981 #endif |
| 982 switches::kEnableLogging, | 982 switches::kEnableLogging, |
| 983 switches::kEnableShareGroupAsyncTextureUpload, | 983 switches::kEnableShareGroupAsyncTextureUpload, |
| 984 #if defined(OS_CHROMEOS) | |
| 985 switches::kEnableVaapiAcceleratedVideoEncode, | |
| 986 #endif | |
| 987 switches::kGpuStartupDialog, | 984 switches::kGpuStartupDialog, |
| 988 switches::kGpuSandboxAllowSysVShm, | 985 switches::kGpuSandboxAllowSysVShm, |
| 989 switches::kGpuSandboxFailuresFatal, | 986 switches::kGpuSandboxFailuresFatal, |
| 990 switches::kGpuSandboxStartAfterInitialization, | 987 switches::kGpuSandboxStartAfterInitialization, |
| 991 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 988 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 992 switches::kLoggingLevel, | 989 switches::kLoggingLevel, |
| 993 switches::kNoSandbox, | 990 switches::kNoSandbox, |
| 994 switches::kTestGLLib, | 991 switches::kTestGLLib, |
| 995 switches::kTraceStartup, | 992 switches::kTraceStartup, |
| 996 switches::kTraceToConsole, | 993 switches::kTraceToConsole, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1113 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1117 ClientIdToShaderCacheMap::iterator iter = | 1114 ClientIdToShaderCacheMap::iterator iter = |
| 1118 client_id_to_shader_cache_.find(client_id); | 1115 client_id_to_shader_cache_.find(client_id); |
| 1119 // If the cache doesn't exist then this is an off the record profile. | 1116 // If the cache doesn't exist then this is an off the record profile. |
| 1120 if (iter == client_id_to_shader_cache_.end()) | 1117 if (iter == client_id_to_shader_cache_.end()) |
| 1121 return; | 1118 return; |
| 1122 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1119 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1123 } | 1120 } |
| 1124 | 1121 |
| 1125 } // namespace content | 1122 } // namespace content |
| OLD | NEW |