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); |