summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorananta <ananta@chromium.org>2015-06-18 06:53:35 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-18 13:55:07 +0000
commit7a921b1ffba329245b3431258403bb7acee7037e (patch)
tree4f5a7d71e7608cf01f0994f3fe601bd599f89b1b /ui
parent4816f8248f2d6566025d2ce7dc99698d5a0177ce (diff)
downloadchromium_src-7a921b1ffba329245b3431258403bb7acee7037e.zip
chromium_src-7a921b1ffba329245b3431258403bb7acee7037e.tar.gz
chromium_src-7a921b1ffba329245b3431258403bb7acee7037e.tar.bz2
Create the omnibox dropdown and the status bubble windows using TYPE_MENU which ensures that they use the Software compositor on Windows.
This is a short term hack to workaround the UI thread blocking issue while creating the command buffer in the browser. We will revert this change once 125248 is fixed. This change will cause the omnibox dropdown to lose the 2 pixel transparency effect which should be ok in the nearterm. BUG=125248 Review URL: https://codereview.chromium.org/1185503002 Cr-Commit-Position: refs/heads/master@{#335032}
Diffstat (limited to 'ui')
-rw-r--r--ui/views/widget/desktop_aura/desktop_native_widget_aura.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 2ee6351..cbe70fa 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -104,6 +104,12 @@ class DesktopNativeWidgetTopLevelHandler : public aura::WindowObserver {
// This widget instance will get deleted when the window is
// destroyed.
top_level_handler->top_level_widget_ = new Widget();
+ // Ensure that we always use the DesktopNativeWidgetAura instance as the
+ // native widget here. If we enter this code path in tests then it is
+ // possible that we may end up with a NativeWidgetAura instance as the
+ // native widget which breaks this code path.
+ init_params.native_widget =
+ new DesktopNativeWidgetAura(top_level_handler->top_level_widget_);
top_level_handler->top_level_widget_->Init(init_params);
top_level_handler->top_level_widget_->SetFullscreen(full_screen);