Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 1110923003: Added switch to disable specified GL extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gl_unittests for windows Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/all.gyp ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698