| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Command-line switches to propagate to the GPU process. | 73 // Command-line switches to propagate to the GPU process. |
| 74 static const char* const kSwitchNames[] = { | 74 static const char* const kSwitchNames[] = { |
| 75 switches::kDisableAcceleratedVideoDecode, | 75 switches::kDisableAcceleratedVideoDecode, |
| 76 switches::kDisableBreakpad, | 76 switches::kDisableBreakpad, |
| 77 switches::kDisableGpuSandbox, | 77 switches::kDisableGpuSandbox, |
| 78 switches::kDisableGpuWatchdog, | 78 switches::kDisableGpuWatchdog, |
| 79 switches::kDisableLogging, | 79 switches::kDisableLogging, |
| 80 switches::kDisableSeccompFilterSandbox, | 80 switches::kDisableSeccompFilterSandbox, |
| 81 #if defined(ENABLE_WEBRTC) | 81 #if defined(ENABLE_WEBRTC) |
| 82 switches::kDisableWebRtcHWEncoding, | 82 switches::kDisableWebRtcHWEncoding, |
| 83 switches::kEnableWebRtcHWVp8Encoding, | |
| 84 #endif | 83 #endif |
| 85 switches::kEnableLogging, | 84 switches::kEnableLogging, |
| 86 switches::kEnableShareGroupAsyncTextureUpload, | 85 switches::kEnableShareGroupAsyncTextureUpload, |
| 87 #if defined(OS_CHROMEOS) | 86 #if defined(OS_CHROMEOS) |
| 88 switches::kDisableVaapiAcceleratedVideoEncode, | 87 switches::kDisableVaapiAcceleratedVideoEncode, |
| 89 #endif | 88 #endif |
| 90 switches::kGpuStartupDialog, | 89 switches::kGpuStartupDialog, |
| 91 switches::kGpuSandboxAllowSysVShm, | 90 switches::kGpuSandboxAllowSysVShm, |
| 92 switches::kGpuSandboxFailuresFatal, | 91 switches::kGpuSandboxFailuresFatal, |
| 93 switches::kGpuSandboxStartEarly, | 92 switches::kGpuSandboxStartEarly, |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1084 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1086 ClientIdToShaderCacheMap::iterator iter = | 1085 ClientIdToShaderCacheMap::iterator iter = |
| 1087 client_id_to_shader_cache_.find(client_id); | 1086 client_id_to_shader_cache_.find(client_id); |
| 1088 // If the cache doesn't exist then this is an off the record profile. | 1087 // If the cache doesn't exist then this is an off the record profile. |
| 1089 if (iter == client_id_to_shader_cache_.end()) | 1088 if (iter == client_id_to_shader_cache_.end()) |
| 1090 return; | 1089 return; |
| 1091 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1090 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1092 } | 1091 } |
| 1093 | 1092 |
| 1094 } // namespace content | 1093 } // namespace content |
| OLD | NEW |