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

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

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: Fix various tests Created 4 years, 3 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: 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 96beb775df9b3160d7e407bce87e51bc90d2cc36..1c406ee5e1159ae4d9a0d12fb0a897a15e360a7b 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -50,6 +50,10 @@
#include "base/win/windows_version.h"
#endif // OS_WIN
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+#include "ui/base/x/x11_util_internal.h" // nogncheck
+#endif
+
namespace content {
namespace {
@@ -1171,6 +1175,12 @@ void GpuDataManagerImplPrivate::UpdateGpuSwitchingManager(
}
void GpuDataManagerImplPrivate::NotifyGpuInfoUpdate() {
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ // TODO(thomasanderson): figure out what to do with this
Tom (Use chromium acct) 2016/09/22 19:53:29 I left this here as a placeholder but I'm not quit
+ ui::XVisualManager::GetInstance()->OnGPUInfoChanged(
piman 2016/09/22 21:24:54 This function is called on the IO thread (and some
Tom (Use chromium acct) 2016/09/23 20:00:37 Done. Added GpuDataManagerVisualProxy in browser_
piman 2016/09/26 21:13:29 I think I'm ok if we punt on --single-process. Dir
+ gpu_info_.software_rendering || card_blacklisted_,
+ gpu_info_.system_visual, gpu_info_.rgba_visual);
+#endif
observer_list_->Notify(FROM_HERE, &GpuDataManagerObserver::OnGpuInfoUpdate);
}

Powered by Google App Engine
This is Rietveld 408576698