| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #endif | 84 #endif |
| 85 switches::kEnableLogging, | 85 switches::kEnableLogging, |
| 86 switches::kEnableShareGroupAsyncTextureUpload, | 86 switches::kEnableShareGroupAsyncTextureUpload, |
| 87 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
| 88 switches::kDisableVaapiAcceleratedVideoEncode, | 88 switches::kDisableVaapiAcceleratedVideoEncode, |
| 89 #endif | 89 #endif |
| 90 switches::kGpuStartupDialog, | 90 switches::kGpuStartupDialog, |
| 91 switches::kGpuSandboxAllowSysVShm, | 91 switches::kGpuSandboxAllowSysVShm, |
| 92 switches::kGpuSandboxFailuresFatal, | 92 switches::kGpuSandboxFailuresFatal, |
| 93 switches::kGpuSandboxStartEarly, | 93 switches::kGpuSandboxStartEarly, |
| 94 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | |
| 95 switches::kLoggingLevel, | 94 switches::kLoggingLevel, |
| 96 switches::kEnableLowEndDeviceMode, | 95 switches::kEnableLowEndDeviceMode, |
| 97 switches::kDisableLowEndDeviceMode, | 96 switches::kDisableLowEndDeviceMode, |
| 98 switches::kNoSandbox, | 97 switches::kNoSandbox, |
| 99 switches::kProfilerTiming, | 98 switches::kProfilerTiming, |
| 100 switches::kTestGLLib, | 99 switches::kTestGLLib, |
| 101 switches::kTraceStartup, | 100 switches::kTraceStartup, |
| 102 switches::kTraceToConsole, | 101 switches::kTraceToConsole, |
| 103 switches::kV, | 102 switches::kV, |
| 104 switches::kVModule, | 103 switches::kVModule, |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1090 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1092 ClientIdToShaderCacheMap::iterator iter = | 1091 ClientIdToShaderCacheMap::iterator iter = |
| 1093 client_id_to_shader_cache_.find(client_id); | 1092 client_id_to_shader_cache_.find(client_id); |
| 1094 // If the cache doesn't exist then this is an off the record profile. | 1093 // If the cache doesn't exist then this is an off the record profile. |
| 1095 if (iter == client_id_to_shader_cache_.end()) | 1094 if (iter == client_id_to_shader_cache_.end()) |
| 1096 return; | 1095 return; |
| 1097 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1096 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1098 } | 1097 } |
| 1099 | 1098 |
| 1100 } // namespace content | 1099 } // namespace content |
| OLD | NEW |