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

Unified Diff: chrome/browser/ui/views/status_bubble_views.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
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index 52115f4c1a9d49d230909513e56a7a1e9cb323c0..bee00e8111b470c7401899ce75fea94273062fba 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -581,17 +581,13 @@ void StatusBubbleViews::Init() {
view_ = new StatusView(popup_.get(), frame->GetThemeProvider());
if (!expand_view_.get())
expand_view_.reset(new StatusViewExpander(this, view_));
- // On Windows use TYPE_MENU to ensure that this window uses the software
- // compositor which avoids the UI thread blocking issue during command
- // buffer creation. We can revert this change once http://crbug.com/125248
- // is fixed.
-#if defined(OS_WIN)
- views::Widget::InitParams params(views::Widget::InitParams::TYPE_MENU);
- // The menu style assumes a top most window. We don't want that in this
- // case.
- params.keep_on_top = false;
-#else
+
views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
+#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
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
params.accept_events = false;
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698