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

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

Issue 120313002: Use stub GL draw/clear calls for browser tests that do not need pixels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/test/browser_test_base.cc » ('j') | ui/gl/gl_surface.cc » ('J')
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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess); 1107 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess);
1108 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 1108 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
1109 1109
1110 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) 1110 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED)
1111 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); 1111 cmd_line->AppendSwitch(switches::kDisableGpuSandbox);
1112 1112
1113 // Propagate relevant command line switches. 1113 // Propagate relevant command line switches.
1114 static const char* const kSwitchNames[] = { 1114 static const char* const kSwitchNames[] = {
1115 switches::kDisableAcceleratedVideoDecode, 1115 switches::kDisableAcceleratedVideoDecode,
1116 switches::kDisableBreakpad, 1116 switches::kDisableBreakpad,
1117 switches::kDisableGLDrawingForTests,
1117 switches::kDisableGLMultisampling, 1118 switches::kDisableGLMultisampling,
1118 switches::kDisableGpuSandbox, 1119 switches::kDisableGpuSandbox,
1119 switches::kDisableGpuWatchdog, 1120 switches::kDisableGpuWatchdog,
1120 switches::kDisableImageTransportSurface, 1121 switches::kDisableImageTransportSurface,
1121 switches::kDisableLogging, 1122 switches::kDisableLogging,
1122 switches::kDisableSeccompFilterSandbox, 1123 switches::kDisableSeccompFilterSandbox,
1123 #if defined(ENABLE_WEBRTC) 1124 #if defined(ENABLE_WEBRTC)
1124 switches::kDisableWebRtcHWEncoding, 1125 switches::kDisableWebRtcHWEncoding,
1125 #endif 1126 #endif
1126 switches::kEnableLogging, 1127 switches::kEnableLogging,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1258 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1258 ClientIdToShaderCacheMap::iterator iter = 1259 ClientIdToShaderCacheMap::iterator iter =
1259 client_id_to_shader_cache_.find(client_id); 1260 client_id_to_shader_cache_.find(client_id);
1260 // If the cache doesn't exist then this is an off the record profile. 1261 // If the cache doesn't exist then this is an off the record profile.
1261 if (iter == client_id_to_shader_cache_.end()) 1262 if (iter == client_id_to_shader_cache_.end())
1262 return; 1263 return;
1263 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1264 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1264 } 1265 }
1265 1266
1266 } // namespace content 1267 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/test/browser_test_base.cc » ('j') | ui/gl/gl_surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698