| Index: ui/aura/window_tree_host_win.cc
|
| diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc
|
| index adf56e91ac76e7092f40d754d9278d016efe6a82..120167b3f6445270550b536559e66934b6f1fe29 100644
|
| --- a/ui/aura/window_tree_host_win.cc
|
| +++ b/ui/aura/window_tree_host_win.cc
|
| @@ -30,8 +30,9 @@ bool use_popup_as_root_window_for_test = false;
|
| } // namespace
|
|
|
| // static
|
| -WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) {
|
| - return new WindowTreeHostWin(bounds);
|
| +WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds,
|
| + ui::ContextFactory* context_factory) {
|
| + return new WindowTreeHostWin(bounds, context_factory);
|
| }
|
|
|
| // static
|
| @@ -40,13 +41,14 @@ gfx::Size WindowTreeHost::GetNativeScreenSize() {
|
| GetSystemMetrics(SM_CYSCREEN));
|
| }
|
|
|
| -WindowTreeHostWin::WindowTreeHostWin(const gfx::Rect& bounds)
|
| +WindowTreeHostWin::WindowTreeHostWin(const gfx::Rect& bounds,
|
| + ui::ContextFactory* context_factory)
|
| : has_capture_(false) {
|
| if (use_popup_as_root_window_for_test)
|
| set_window_style(WS_POPUP);
|
| Init(NULL, bounds);
|
| SetWindowText(hwnd(), L"aura::RootWindow!");
|
| - CreateCompositor(GetAcceleratedWidget());
|
| + CreateCompositor(GetAcceleratedWidget(), context_factory);
|
| }
|
|
|
| WindowTreeHostWin::~WindowTreeHostWin() {
|
|
|