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

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

Issue 2195743005: Fix ineffective --disable-gpu-driver-bug-workarounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: record and re-apply disabled gl extensions to avoid known gpu driver crashes 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
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
161 }; 162 };
162 163
163 enum GPUProcessLifetimeEvent { 164 enum GPUProcessLifetimeEvent {
164 LAUNCHED, 165 LAUNCHED,
165 DIED_FIRST_TIME, 166 DIED_FIRST_TIME,
166 DIED_SECOND_TIME, 167 DIED_SECOND_TIME,
167 DIED_THIRD_TIME, 168 DIED_THIRD_TIME,
168 DIED_FOURTH_TIME, 169 DIED_FOURTH_TIME,
169 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 170 GPU_PROCESS_LIFETIME_EVENT_MAX = 100
170 }; 171 };
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1203 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1203 ClientIdToShaderCacheMap::iterator iter = 1204 ClientIdToShaderCacheMap::iterator iter =
1204 client_id_to_shader_cache_.find(client_id); 1205 client_id_to_shader_cache_.find(client_id);
1205 // If the cache doesn't exist then this is an off the record profile. 1206 // If the cache doesn't exist then this is an off the record profile.
1206 if (iter == client_id_to_shader_cache_.end()) 1207 if (iter == client_id_to_shader_cache_.end())
1207 return; 1208 return;
1208 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1209 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1209 } 1210 }
1210 1211
1211 } // namespace content 1212 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698