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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1089 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1091 ClientIdToShaderCacheMap::iterator iter = | 1090 ClientIdToShaderCacheMap::iterator iter = |
1092 client_id_to_shader_cache_.find(client_id); | 1091 client_id_to_shader_cache_.find(client_id); |
1093 // If the cache doesn't exist then this is an off the record profile. | 1092 // If the cache doesn't exist then this is an off the record profile. |
1094 if (iter == client_id_to_shader_cache_.end()) | 1093 if (iter == client_id_to_shader_cache_.end()) |
1095 return; | 1094 return; |
1096 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1095 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1097 } | 1096 } |
1098 | 1097 |
1099 } // namespace content | 1098 } // namespace content |
OLD | NEW |