| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "blimp/engine/app/ui/blimp_window_tree_host.h" | 5 #include "blimp/engine/app/ui/blimp_window_tree_host.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "ui/gfx/native_widget_types.h" |
| 8 #include "ui/platform_window/stub/stub_window.h" | 9 #include "ui/platform_window/stub/stub_window.h" |
| 9 | 10 |
| 10 namespace blimp { | 11 namespace blimp { |
| 11 namespace engine { | 12 namespace engine { |
| 12 | 13 |
| 13 BlimpWindowTreeHost::BlimpWindowTreeHost() : aura::WindowTreeHostPlatform() { | 14 BlimpWindowTreeHost::BlimpWindowTreeHost() : aura::WindowTreeHostPlatform() { |
| 14 SetPlatformWindow(base::WrapUnique(new ui::StubWindow(this))); | 15 SetPlatformWindow(base::WrapUnique( |
| 16 new ui::StubWindow(this, gfx::kNullAcceleratedWidget))); |
| 15 } | 17 } |
| 16 | 18 |
| 17 BlimpWindowTreeHost::~BlimpWindowTreeHost() {} | 19 BlimpWindowTreeHost::~BlimpWindowTreeHost() {} |
| 18 | 20 |
| 19 void BlimpWindowTreeHost::OnAcceleratedWidgetAvailable( | 21 void BlimpWindowTreeHost::OnAcceleratedWidgetAvailable( |
| 20 gfx::AcceleratedWidget widget, | 22 gfx::AcceleratedWidget widget, |
| 21 float device_pixel_ratio) { | 23 float device_pixel_ratio) { |
| 22 // Do nothing to avoid creating an output surface and gpu process. | 24 // Do nothing to avoid creating an output surface and gpu process. |
| 23 } | 25 } |
| 24 | 26 |
| 25 } // namespace engine | 27 } // namespace engine |
| 26 } // namespace blimp | 28 } // namespace blimp |
| OLD | NEW |