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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2770933008: Solving some telemetry tests' slowness (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 319a130a4c0c68108af5018bf44776b414c81fdb..260a8969f6a891dbcc09dd791541f616ca16a698 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -428,11 +428,9 @@ void GpuDataManagerImplPrivate::RequestCompleteGpuInfoIfNeeded() {
}
bool GpuDataManagerImplPrivate::IsEssentialGpuInfoAvailable() const {
- if (gpu_info_.basic_info_state == gpu::kCollectInfoNone ||
- gpu_info_.context_info_state == gpu::kCollectInfoNone) {
- return false;
- }
- return true;
+ return (gpu_info_.basic_info_state != gpu::kCollectInfoNone &&
+ gpu_info_.context_info_state != gpu::kCollectInfoNone) ||
+ use_swiftshader_;
Ken Russell (switch to Gerrit) 2017/03/24 21:57:52 What does GpuDataManager::GetGPUInfo() return now
}
bool GpuDataManagerImplPrivate::IsCompleteGpuInfoAvailable() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698