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, |
83 #endif | 84 #endif |
84 switches::kEnableLogging, | 85 switches::kEnableLogging, |
85 switches::kEnableShareGroupAsyncTextureUpload, | 86 switches::kEnableShareGroupAsyncTextureUpload, |
86 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
87 switches::kDisableVaapiAcceleratedVideoEncode, | 88 switches::kDisableVaapiAcceleratedVideoEncode, |
88 #endif | 89 #endif |
89 switches::kGpuStartupDialog, | 90 switches::kGpuStartupDialog, |
90 switches::kGpuSandboxAllowSysVShm, | 91 switches::kGpuSandboxAllowSysVShm, |
91 switches::kGpuSandboxFailuresFatal, | 92 switches::kGpuSandboxFailuresFatal, |
92 switches::kGpuSandboxStartEarly, | 93 switches::kGpuSandboxStartEarly, |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1058 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1058 ClientIdToShaderCacheMap::iterator iter = | 1059 ClientIdToShaderCacheMap::iterator iter = |
1059 client_id_to_shader_cache_.find(client_id); | 1060 client_id_to_shader_cache_.find(client_id); |
1060 // If the cache doesn't exist then this is an off the record profile. | 1061 // If the cache doesn't exist then this is an off the record profile. |
1061 if (iter == client_id_to_shader_cache_.end()) | 1062 if (iter == client_id_to_shader_cache_.end()) |
1062 return; | 1063 return; |
1063 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1064 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1064 } | 1065 } |
1065 | 1066 |
1066 } // namespace content | 1067 } // namespace content |
OLD | NEW |