Chromium Code Reviews| Index: ui/aura/mus/window_tree_client.h |
| diff --git a/ui/aura/mus/window_tree_client.h b/ui/aura/mus/window_tree_client.h |
| index 63073714c818f062032f27e0558111c8cbff5323..b8142476758319bbee64615e0abc817af18fff24 100644 |
| --- a/ui/aura/mus/window_tree_client.h |
| +++ b/ui/aura/mus/window_tree_client.h |
| @@ -30,6 +30,14 @@ |
| #include "ui/aura/mus/window_manager_delegate.h" |
| #include "ui/aura/mus/window_tree_host_mus_delegate.h" |
| +namespace base { |
| +class Thread; |
| +} |
| + |
| +namespace discardable_memory { |
| +class ClientDiscardableSharedMemoryManager; |
| +} |
| + |
| namespace display { |
| class Display; |
| } |
| @@ -91,7 +99,8 @@ class AURA_EXPORT WindowTreeClient |
| WindowTreeClientDelegate* delegate, |
| WindowManagerDelegate* window_manager_delegate = nullptr, |
| ui::mojom::WindowTreeClientRequest request = nullptr, |
| - scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr); |
| + scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr, |
| + bool create_discardable_memory = true); |
|
sky
2017/03/14 03:15:34
Document what create_discardable_memory means and
Peng
2017/03/14 15:03:14
Done.
|
| ~WindowTreeClient() override; |
| // Establishes the connection by way of the WindowTreeFactory. |
| @@ -543,9 +552,15 @@ class AURA_EXPORT WindowTreeClient |
| base::ObserverList<WindowTreeClientTestObserver> test_observers_; |
| + // IO thread for GPU and discardable shared memory IPC. |
| + std::unique_ptr<base::Thread> io_thread_; |
| + |
| std::unique_ptr<ui::Gpu> gpu_; |
| std::unique_ptr<MusContextFactory> compositor_context_factory_; |
| + std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> |
| + discardable_shared_memory_manager_; |
| + |
| // If |compositor_context_factory_| is installed on Env, then this is the |
| // ContextFactory that was set on Env originally. |
| ui::ContextFactory* initial_context_factory_ = nullptr; |