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

Unified Diff: chrome/browser/gpu_data_manager.cc

Issue 6677149: Append software rendering list version to the about:gpu page. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/gpu_data_manager.cc
===================================================================
--- chrome/browser/gpu_data_manager.cc (revision 80377)
+++ chrome/browser/gpu_data_manager.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
+#include "base/string_number_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/gpu_process_host_ui_shim.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -94,6 +95,21 @@
return NULL;
}
+std::string GpuDataManager::GetBlacklistVersion() const {
+ if (gpu_blacklist_.get() != NULL) {
+ uint16 version_major, version_minor;
+ if (gpu_blacklist_->GetVersion(&version_major,
+ &version_minor)) {
+ std::string version_string =
+ base::UintToString(static_cast<unsigned>(version_major)) +
+ "." +
+ base::UintToString(static_cast<unsigned>(version_minor));
+ return version_string;
+ }
+ }
+ return "";
+}
+
void GpuDataManager::AddLogMessage(Value* msg) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
log_messages_.Append(msg);

Powered by Google App Engine
This is Rietveld 408576698