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

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

Issue 1991953002: Implement a runtime headless mode for Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 switches::kEnableHeapProfiling, 127 switches::kEnableHeapProfiling,
128 switches::kEnableLogging, 128 switches::kEnableLogging,
129 #if defined(OS_CHROMEOS) 129 #if defined(OS_CHROMEOS)
130 switches::kDisableVaapiAcceleratedVideoEncode, 130 switches::kDisableVaapiAcceleratedVideoEncode,
131 #endif 131 #endif
132 switches::kGpuDriverBugWorkarounds, 132 switches::kGpuDriverBugWorkarounds,
133 switches::kGpuStartupDialog, 133 switches::kGpuStartupDialog,
134 switches::kGpuSandboxAllowSysVShm, 134 switches::kGpuSandboxAllowSysVShm,
135 switches::kGpuSandboxFailuresFatal, 135 switches::kGpuSandboxFailuresFatal,
136 switches::kGpuSandboxStartEarly, 136 switches::kGpuSandboxStartEarly,
137 switches::kHeadless,
137 switches::kLoggingLevel, 138 switches::kLoggingLevel,
138 switches::kEnableLowEndDeviceMode, 139 switches::kEnableLowEndDeviceMode,
139 switches::kDisableLowEndDeviceMode, 140 switches::kDisableLowEndDeviceMode,
140 switches::kEnableMemoryBenchmarking, 141 switches::kEnableMemoryBenchmarking,
141 switches::kNoSandbox, 142 switches::kNoSandbox,
142 switches::kProfilerTiming, 143 switches::kProfilerTiming,
143 switches::kTestGLLib, 144 switches::kTestGLLib,
144 switches::kTraceConfigFile, 145 switches::kTraceConfigFile,
145 switches::kTraceStartup, 146 switches::kTraceStartup,
146 switches::kTraceToConsole, 147 switches::kTraceToConsole,
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1192 ClientIdToShaderCacheMap::iterator iter = 1193 ClientIdToShaderCacheMap::iterator iter =
1193 client_id_to_shader_cache_.find(client_id); 1194 client_id_to_shader_cache_.find(client_id);
1194 // If the cache doesn't exist then this is an off the record profile. 1195 // If the cache doesn't exist then this is an off the record profile.
1195 if (iter == client_id_to_shader_cache_.end()) 1196 if (iter == client_id_to_shader_cache_.end())
1196 return; 1197 return;
1197 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1198 } 1199 }
1199 1200
1200 } // namespace content 1201 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698