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

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

Issue 723623003: Revert of [DevTools] Move SystemInfo domain to generated handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browserProtocol
Patch Set: Created 6 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_data_manager_impl_private.h" 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 749 }
750 750
751 void GpuDataManagerImplPrivate::GetBlacklistReasons( 751 void GpuDataManagerImplPrivate::GetBlacklistReasons(
752 base::ListValue* reasons) const { 752 base::ListValue* reasons) const {
753 if (gpu_blacklist_) 753 if (gpu_blacklist_)
754 gpu_blacklist_->GetReasons(reasons, "disabledFeatures"); 754 gpu_blacklist_->GetReasons(reasons, "disabledFeatures");
755 if (gpu_driver_bug_list_) 755 if (gpu_driver_bug_list_)
756 gpu_driver_bug_list_->GetReasons(reasons, "workarounds"); 756 gpu_driver_bug_list_->GetReasons(reasons, "workarounds");
757 } 757 }
758 758
759 std::vector<std::string> 759 void GpuDataManagerImplPrivate::GetDriverBugWorkarounds(
760 GpuDataManagerImplPrivate::GetDriverBugWorkarounds() const { 760 base::ListValue* workarounds) const {
761 std::vector<std::string> workarounds;
762 for (std::set<int>::const_iterator it = gpu_driver_bugs_.begin(); 761 for (std::set<int>::const_iterator it = gpu_driver_bugs_.begin();
763 it != gpu_driver_bugs_.end(); ++it) { 762 it != gpu_driver_bugs_.end(); ++it) {
764 workarounds.push_back( 763 workarounds->AppendString(
765 gpu::GpuDriverBugWorkaroundTypeToString( 764 gpu::GpuDriverBugWorkaroundTypeToString(
766 static_cast<gpu::GpuDriverBugWorkaroundType>(*it))); 765 static_cast<gpu::GpuDriverBugWorkaroundType>(*it)));
767 } 766 }
768 return workarounds;
769 } 767 }
770 768
771 void GpuDataManagerImplPrivate::AddLogMessage( 769 void GpuDataManagerImplPrivate::AddLogMessage(
772 int level, const std::string& header, const std::string& message) { 770 int level, const std::string& header, const std::string& message) {
773 log_messages_.push_back(LogMessage(level, header, message)); 771 log_messages_.push_back(LogMessage(level, header, message));
774 } 772 }
775 773
776 void GpuDataManagerImplPrivate::ProcessCrashed( 774 void GpuDataManagerImplPrivate::ProcessCrashed(
777 base::TerminationStatus exit_code) { 775 base::TerminationStatus exit_code) {
778 if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { 776 if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; 1133 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure;
1136 #if defined(OS_WIN) 1134 #if defined(OS_WIN)
1137 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; 1135 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure;
1138 #endif 1136 #endif
1139 complete_gpu_info_already_requested_ = true; 1137 complete_gpu_info_already_requested_ = true;
1140 // Some observers might be waiting. 1138 // Some observers might be waiting.
1141 NotifyGpuInfoUpdate(); 1139 NotifyGpuInfoUpdate();
1142 } 1140 }
1143 1141
1144 } // namespace content 1142 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.h ('k') | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698