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

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: Rebase and modify the test to record, restart and compare 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 switches::kOzonePlatform, 149 switches::kOzonePlatform,
150 #endif 150 #endif
151 #if defined(USE_X11) && !defined(OS_CHROMEOS) 151 #if defined(USE_X11) && !defined(OS_CHROMEOS)
152 switches::kWindowDepth, 152 switches::kWindowDepth,
153 switches::kX11Display, 153 switches::kX11Display,
154 switches::kX11VisualID, 154 switches::kX11VisualID,
155 #endif 155 #endif
156 switches::kGpuTestingGLVendor, 156 switches::kGpuTestingGLVendor,
157 switches::kGpuTestingGLRenderer, 157 switches::kGpuTestingGLRenderer,
158 switches::kGpuTestingGLVersion, 158 switches::kGpuTestingGLVersion,
159 switches::kDisableGpuDriverBugWorkarounds
159 }; 160 };
160 161
161 enum GPUProcessLifetimeEvent { 162 enum GPUProcessLifetimeEvent {
162 LAUNCHED, 163 LAUNCHED,
163 DIED_FIRST_TIME, 164 DIED_FIRST_TIME,
164 DIED_SECOND_TIME, 165 DIED_SECOND_TIME,
165 DIED_THIRD_TIME, 166 DIED_THIRD_TIME,
166 DIED_FOURTH_TIME, 167 DIED_FOURTH_TIME,
167 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 168 GPU_PROCESS_LIFETIME_EVENT_MAX = 100
168 }; 169 };
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1173 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1173 ClientIdToShaderCacheMap::iterator iter = 1174 ClientIdToShaderCacheMap::iterator iter =
1174 client_id_to_shader_cache_.find(client_id); 1175 client_id_to_shader_cache_.find(client_id);
1175 // If the cache doesn't exist then this is an off the record profile. 1176 // If the cache doesn't exist then this is an off the record profile.
1176 if (iter == client_id_to_shader_cache_.end()) 1177 if (iter == client_id_to_shader_cache_.end())
1177 return; 1178 return;
1178 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1179 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1179 } 1180 }
1180 1181
1181 } // namespace content 1182 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | content/test/gpu/page_sets/gpu_process_tests.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698