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

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

Issue 2253413002: 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 switches::kOzonePlatform, 151 switches::kOzonePlatform,
152 #endif 152 #endif
153 #if defined(USE_X11) && !defined(OS_CHROMEOS) 153 #if defined(USE_X11) && !defined(OS_CHROMEOS)
154 switches::kWindowDepth, 154 switches::kWindowDepth,
155 switches::kX11Display, 155 switches::kX11Display,
156 switches::kX11VisualID, 156 switches::kX11VisualID,
157 #endif 157 #endif
158 switches::kGpuTestingGLVendor, 158 switches::kGpuTestingGLVendor,
159 switches::kGpuTestingGLRenderer, 159 switches::kGpuTestingGLRenderer,
160 switches::kGpuTestingGLVersion, 160 switches::kGpuTestingGLVersion,
161 switches::kDisableGpuDriverBugWorkarounds
162 }; 161 };
163 162
164 enum GPUProcessLifetimeEvent { 163 enum GPUProcessLifetimeEvent {
165 LAUNCHED, 164 LAUNCHED,
166 DIED_FIRST_TIME, 165 DIED_FIRST_TIME,
167 DIED_SECOND_TIME, 166 DIED_SECOND_TIME,
168 DIED_THIRD_TIME, 167 DIED_THIRD_TIME,
169 DIED_FOURTH_TIME, 168 DIED_FOURTH_TIME,
170 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 169 GPU_PROCESS_LIFETIME_EVENT_MAX = 100
171 }; 170 };
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1202 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1204 ClientIdToShaderCacheMap::iterator iter = 1203 ClientIdToShaderCacheMap::iterator iter =
1205 client_id_to_shader_cache_.find(client_id); 1204 client_id_to_shader_cache_.find(client_id);
1206 // If the cache doesn't exist then this is an off the record profile. 1205 // If the cache doesn't exist then this is an off the record profile.
1207 if (iter == client_id_to_shader_cache_.end()) 1206 if (iter == client_id_to_shader_cache_.end())
1208 return; 1207 return;
1209 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1208 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1210 } 1209 }
1211 1210
1212 } // namespace content 1211 } // 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