| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    70 int GpuProcessHost::swiftshader_crash_count_ = 0; |    70 int GpuProcessHost::swiftshader_crash_count_ = 0; | 
|    71  |    71  | 
|    72 namespace { |    72 namespace { | 
|    73  |    73  | 
|    74 // Command-line switches to propagate to the GPU process. |    74 // Command-line switches to propagate to the GPU process. | 
|    75 static const char* const kSwitchNames[] = { |    75 static const char* const kSwitchNames[] = { | 
|    76   switches::kDisableAcceleratedVideoDecode, |    76   switches::kDisableAcceleratedVideoDecode, | 
|    77   switches::kDisableBreakpad, |    77   switches::kDisableBreakpad, | 
|    78   switches::kDisableGpuSandbox, |    78   switches::kDisableGpuSandbox, | 
|    79   switches::kDisableGpuWatchdog, |    79   switches::kDisableGpuWatchdog, | 
 |    80   switches::kDisableGLExtensions, | 
|    80   switches::kDisableLogging, |    81   switches::kDisableLogging, | 
|    81   switches::kDisableSeccompFilterSandbox, |    82   switches::kDisableSeccompFilterSandbox, | 
|    82 #if defined(ENABLE_WEBRTC) |    83 #if defined(ENABLE_WEBRTC) | 
|    83   switches::kDisableWebRtcHWEncoding, |    84   switches::kDisableWebRtcHWEncoding, | 
|    84 #endif |    85 #endif | 
|    85   switches::kEnableLogging, |    86   switches::kEnableLogging, | 
|    86   switches::kEnableShareGroupAsyncTextureUpload, |    87   switches::kEnableShareGroupAsyncTextureUpload, | 
|    87 #if defined(OS_CHROMEOS) |    88 #if defined(OS_CHROMEOS) | 
|    88   switches::kDisableVaapiAcceleratedVideoEncode, |    89   switches::kDisableVaapiAcceleratedVideoEncode, | 
|    89 #endif |    90 #endif | 
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1090   TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |  1091   TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 
|  1091   ClientIdToShaderCacheMap::iterator iter = |  1092   ClientIdToShaderCacheMap::iterator iter = | 
|  1092       client_id_to_shader_cache_.find(client_id); |  1093       client_id_to_shader_cache_.find(client_id); | 
|  1093   // If the cache doesn't exist then this is an off the record profile. |  1094   // If the cache doesn't exist then this is an off the record profile. | 
|  1094   if (iter == client_id_to_shader_cache_.end()) |  1095   if (iter == client_id_to_shader_cache_.end()) | 
|  1095     return; |  1096     return; | 
|  1096   iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |  1097   iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 
|  1097 } |  1098 } | 
|  1098  |  1099  | 
|  1099 }  // namespace content |  1100 }  // namespace content | 
| OLD | NEW |