Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: ui/aura/mus/window_tree_client.h

Issue 2644093002: aura: Some change to how the client-lib is set up. (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/window_server_test_base.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c89cf1f89eca617cde6eb5e2c34f930ef5399ea..b9e7d9d19613b25fa679a87d8d69451634319919 100644
--- a/ui/aura/mus/window_tree_client.h
+++ b/ui/aura/mus/window_tree_client.h
@@ -42,6 +42,10 @@ namespace service_manager {
class Connector;
}
+namespace ui {
+class Gpu;
+}
+
namespace aura {
class CaptureSynchronizer;
class DragDropControllerMus;
@@ -51,6 +55,7 @@ class InFlightChange;
class InFlightFocusChange;
class InFlightPropertyChange;
class InFlightVisibleChange;
+class MusContextFactory;
class WindowMus;
class WindowPortMus;
struct WindowPortPropertyData;
@@ -87,7 +92,8 @@ class AURA_EXPORT WindowTreeClient
service_manager::Connector* connector,
WindowTreeClientDelegate* delegate,
WindowManagerDelegate* window_manager_delegate = nullptr,
- ui::mojom::WindowTreeClientRequest request = nullptr);
+ ui::mojom::WindowTreeClientRequest request = nullptr,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr);
~WindowTreeClient() override;
// Establishes the connection by way of the WindowTreeFactory.
@@ -97,6 +103,7 @@ class AURA_EXPORT WindowTreeClient
void ConnectAsWindowManager();
service_manager::Connector* connector() { return connector_; }
+ ui::Gpu* gpu() { return gpu_.get(); }
bool connected() const { return tree_ != nullptr; }
ClientSpecificId client_id() const { return client_id_; }
@@ -523,6 +530,8 @@ class AURA_EXPORT WindowTreeClient
std::unique_ptr<DragDropControllerMus> drag_drop_controller_;
+ std::unique_ptr<ui::Gpu> gpu_;
+ std::unique_ptr<MusContextFactory> compositor_context_factory_;
base::WeakPtrFactory<WindowTreeClient> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
« no previous file with comments | « services/ui/ws/window_server_test_base.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698