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

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

Issue 261013004: Allow use of EGL in browser tests with --use-gl=egl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: egl-browsertests: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/test/browser_test_base.cc » ('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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess); 910 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess);
911 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 911 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
912 912
913 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) 913 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED)
914 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); 914 cmd_line->AppendSwitch(switches::kDisableGpuSandbox);
915 915
916 // Propagate relevant command line switches. 916 // Propagate relevant command line switches.
917 static const char* const kSwitchNames[] = { 917 static const char* const kSwitchNames[] = {
918 switches::kDisableAcceleratedVideoDecode, 918 switches::kDisableAcceleratedVideoDecode,
919 switches::kDisableBreakpad, 919 switches::kDisableBreakpad,
920 switches::kDisableGLDrawingForTests,
921 switches::kDisableGpuSandbox, 920 switches::kDisableGpuSandbox,
922 switches::kDisableGpuWatchdog, 921 switches::kDisableGpuWatchdog,
923 switches::kDisableLogging, 922 switches::kDisableLogging,
924 switches::kDisableSeccompFilterSandbox, 923 switches::kDisableSeccompFilterSandbox,
925 #if defined(ENABLE_WEBRTC) 924 #if defined(ENABLE_WEBRTC)
926 switches::kDisableWebRtcHWEncoding, 925 switches::kDisableWebRtcHWEncoding,
927 #endif 926 #endif
928 switches::kEnableLogging, 927 switches::kEnableLogging,
929 switches::kEnableShareGroupAsyncTextureUpload, 928 switches::kEnableShareGroupAsyncTextureUpload,
930 switches::kGpuStartupDialog, 929 switches::kGpuStartupDialog,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1056 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1058 ClientIdToShaderCacheMap::iterator iter = 1057 ClientIdToShaderCacheMap::iterator iter =
1059 client_id_to_shader_cache_.find(client_id); 1058 client_id_to_shader_cache_.find(client_id);
1060 // If the cache doesn't exist then this is an off the record profile. 1059 // If the cache doesn't exist then this is an off the record profile.
1061 if (iter == client_id_to_shader_cache_.end()) 1060 if (iter == client_id_to_shader_cache_.end())
1062 return; 1061 return;
1063 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1062 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1064 } 1063 }
1065 1064
1066 } // namespace content 1065 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/test/browser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698