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

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

Issue 2203713003: Revert of Fix ineffective --disable-gpu-driver-bug-workarounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 switches::kOzonePlatform, 154 switches::kOzonePlatform,
155 #endif 155 #endif
156 #if defined(USE_X11) && !defined(OS_CHROMEOS) 156 #if defined(USE_X11) && !defined(OS_CHROMEOS)
157 switches::kWindowDepth, 157 switches::kWindowDepth,
158 switches::kX11Display, 158 switches::kX11Display,
159 switches::kX11VisualID, 159 switches::kX11VisualID,
160 #endif 160 #endif
161 switches::kGpuTestingGLVendor, 161 switches::kGpuTestingGLVendor,
162 switches::kGpuTestingGLRenderer, 162 switches::kGpuTestingGLRenderer,
163 switches::kGpuTestingGLVersion, 163 switches::kGpuTestingGLVersion,
164 switches::kDisableGpuDriverBugWorkarounds
165 }; 164 };
166 165
167 enum GPUProcessLifetimeEvent { 166 enum GPUProcessLifetimeEvent {
168 LAUNCHED, 167 LAUNCHED,
169 DIED_FIRST_TIME, 168 DIED_FIRST_TIME,
170 DIED_SECOND_TIME, 169 DIED_SECOND_TIME,
171 DIED_THIRD_TIME, 170 DIED_THIRD_TIME,
172 DIED_FOURTH_TIME, 171 DIED_FOURTH_TIME,
173 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 172 GPU_PROCESS_LIFETIME_EVENT_MAX = 100
174 }; 173 };
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1190 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1192 ClientIdToShaderCacheMap::iterator iter = 1191 ClientIdToShaderCacheMap::iterator iter =
1193 client_id_to_shader_cache_.find(client_id); 1192 client_id_to_shader_cache_.find(client_id);
1194 // If the cache doesn't exist then this is an off the record profile. 1193 // If the cache doesn't exist then this is an off the record profile.
1195 if (iter == client_id_to_shader_cache_.end()) 1194 if (iter == client_id_to_shader_cache_.end())
1196 return; 1195 return;
1197 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1196 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1198 } 1197 }
1199 1198
1200 } // namespace content 1199 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698