| Index: ui/aura/window_tree_host_mac.mm
|
| diff --git a/ui/aura/window_tree_host_mac.mm b/ui/aura/window_tree_host_mac.mm
|
| index 7fb3f82a2eccfaf21e25016c10aab245ff45a461..fd41bcff2cb70f881c3a41845d6f04409b85e5af 100644
|
| --- a/ui/aura/window_tree_host_mac.mm
|
| +++ b/ui/aura/window_tree_host_mac.mm
|
| @@ -9,14 +9,15 @@
|
|
|
| namespace aura {
|
|
|
| -WindowTreeHostMac::WindowTreeHostMac(const gfx::Rect& bounds) {
|
| +WindowTreeHostMac::WindowTreeHostMac(const gfx::Rect& bounds,
|
| + ui::ContextFactory* context_factory) {
|
| window_.reset(
|
| [[NSWindow alloc]
|
| initWithContentRect:NSRectFromCGRect(bounds.ToCGRect())
|
| styleMask:NSBorderlessWindowMask
|
| backing:NSBackingStoreBuffered
|
| defer:NO]);
|
| - CreateCompositor(GetAcceleratedWidget());
|
| + CreateCompositor(GetAcceleratedWidget(), context_factory);
|
| }
|
|
|
| WindowTreeHostMac::~WindowTreeHostMac() {
|
| @@ -101,8 +102,9 @@ void WindowTreeHostMac::OnDeviceScaleFactorChanged(float device_scale_factor) {
|
| }
|
|
|
| // static
|
| -WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) {
|
| - return new WindowTreeHostMac(bounds);
|
| +WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds,
|
| + ui::ContextFactory* context_factory) {
|
| + return new WindowTreeHostMac(bounds, context_factory);
|
| }
|
|
|
| // static
|
|
|