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

Unified Diff: ui/views/controls/menu/menu_host.cc

Issue 1380973003: Add a flag use_software_compositing to the Widget::InitParams structure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix alignment Created 5 years, 2 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: ui/views/controls/menu/menu_host.cc
diff --git a/ui/views/controls/menu/menu_host.cc b/ui/views/controls/menu/menu_host.cc
index ac9d7ad3a9ea6a61b536f45e8e37fb4f0b382516..da2f127f446d173ca83b832e04dc2b9ebe5d7c24 100644
--- a/ui/views/controls/menu/menu_host.cc
+++ b/ui/views/controls/menu/menu_host.cc
@@ -52,6 +52,12 @@ void MenuHost::InitMenuHost(Widget* parent,
Widget::InitParams::OPAQUE_WINDOW;
params.parent = parent ? parent->GetNativeView() : NULL;
params.bounds = bounds;
+#if defined(OS_WIN)
+ // On Windows use the software compositor to ensure that we don't block
+ // the UI thread blocking issue during command buffer creation. We can
+ // revert this change once http://crbug.com/125248 is fixed.
+ params.force_software_compositing = true;
+#endif
Init(params);
SetContentsView(contents_view);
« no previous file with comments | « chrome/browser/ui/views/status_bubble_views.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698