Index: chromecast/browser/cast_browser_main_parts.cc |
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc |
index 45edf44d13197469e5dcf302f1364e341e19a9b4..3b1e1e2ca58ce04719804dc300e3039d1939da40 100644 |
--- a/chromecast/browser/cast_browser_main_parts.cc |
+++ b/chromecast/browser/cast_browser_main_parts.cc |
@@ -17,6 +17,7 @@ |
#include "base/run_loop.h" |
#include "cc/base/switches.h" |
#include "chromecast/base/cast_paths.h" |
+#include "chromecast/base/cast_sys_info_util.h" |
#include "chromecast/base/metrics/cast_metrics_helper.h" |
#include "chromecast/base/metrics/grouped_histogram.h" |
#include "chromecast/browser/cast_browser_context.h" |
@@ -30,7 +31,9 @@ |
#include "chromecast/common/chromecast_switches.h" |
#include "chromecast/common/platform_client_auth.h" |
#include "chromecast/net/connectivity_checker.h" |
+#include "chromecast/public/cast_sys_info.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/gpu_data_manager.h" |
#include "content/public/common/content_switches.h" |
#include "media/base/browser_cdm_factory.h" |
#include "media/base/media_switches.h" |
@@ -254,6 +257,13 @@ int CastBrowserMainParts::PreCreateThreads() { |
} |
void CastBrowserMainParts::PreMainMessageLoopRun() { |
+ // Set GL strings so GPU config code can make correct feature blacklisting/ |
+ // whitelisting decisions. |
+ scoped_ptr<CastSysInfo> sys_info = CreateSysInfo(); |
+ content::GpuDataManager::GetInstance()->SetGLStrings( |
Zhenyao Mo
2015/05/01 18:12:03
Please add a comment here that this has to be call
gunsch
2015/05/01 18:23:44
I don't suppose we have a public API via which we
|
+ sys_info->GetGlVendor(), sys_info->GetGlRenderer(), |
+ sys_info->GetGlVersion()); |
+ |
scoped_refptr<PrefRegistrySimple> pref_registry(new PrefRegistrySimple()); |
metrics::RegisterPrefs(pref_registry.get()); |
cast_browser_process_->SetPrefService( |