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

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

Issue 1317333002: Reland [Startup Tracing] Add --trace-config-file flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 3 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 | « content/browser/browser_main_runner.cc ('k') | content/browser/plugin_process_host.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 switches::kGpuSandboxAllowSysVShm, 106 switches::kGpuSandboxAllowSysVShm,
107 switches::kGpuSandboxFailuresFatal, 107 switches::kGpuSandboxFailuresFatal,
108 switches::kGpuSandboxStartEarly, 108 switches::kGpuSandboxStartEarly,
109 switches::kLoggingLevel, 109 switches::kLoggingLevel,
110 switches::kEnableLowEndDeviceMode, 110 switches::kEnableLowEndDeviceMode,
111 switches::kDisableLowEndDeviceMode, 111 switches::kDisableLowEndDeviceMode,
112 switches::kEnableMemoryBenchmarking, 112 switches::kEnableMemoryBenchmarking,
113 switches::kNoSandbox, 113 switches::kNoSandbox,
114 switches::kProfilerTiming, 114 switches::kProfilerTiming,
115 switches::kTestGLLib, 115 switches::kTestGLLib,
116 switches::kTraceConfigFile,
116 switches::kTraceStartup, 117 switches::kTraceStartup,
117 switches::kTraceToConsole, 118 switches::kTraceToConsole,
118 switches::kV, 119 switches::kV,
119 switches::kVModule, 120 switches::kVModule,
120 #if defined(OS_MACOSX) 121 #if defined(OS_MACOSX)
121 switches::kDisableRemoteCoreAnimation, 122 switches::kDisableRemoteCoreAnimation,
122 switches::kDisableMacOverlays, 123 switches::kDisableMacOverlays,
123 switches::kEnableSandboxLogging, 124 switches::kEnableSandboxLogging,
124 switches::kShowMacOverlayBorders, 125 switches::kShowMacOverlayBorders,
125 #endif 126 #endif
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1148 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1148 ClientIdToShaderCacheMap::iterator iter = 1149 ClientIdToShaderCacheMap::iterator iter =
1149 client_id_to_shader_cache_.find(client_id); 1150 client_id_to_shader_cache_.find(client_id);
1150 // If the cache doesn't exist then this is an off the record profile. 1151 // If the cache doesn't exist then this is an off the record profile.
1151 if (iter == client_id_to_shader_cache_.end()) 1152 if (iter == client_id_to_shader_cache_.end())
1152 return; 1153 return;
1153 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1154 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1154 } 1155 }
1155 1156
1156 } // namespace content 1157 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698