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

Unified Diff: services/ui/ws/test_server_window_delegate.cc

Issue 2541683004: Add/remove surface references via MojoCompositorFrameSink. (Closed)
Patch Set: Cleanup. Created 4 years 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/test_server_window_delegate.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_server_window_delegate.cc
diff --git a/services/ui/ws/test_server_window_delegate.cc b/services/ui/ws/test_server_window_delegate.cc
index a19ee6f6875aec285dee38336e031c177d9b1777..6465ac48d7974682b9043282a3527c00ff9aecc7 100644
--- a/services/ui/ws/test_server_window_delegate.cc
+++ b/services/ui/ws/test_server_window_delegate.cc
@@ -2,15 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "services/ui/ws/server_window.h"
#include "services/ui/ws/test_server_window_delegate.h"
-namespace ui {
+#include "services/ui/ws/server_window.h"
+namespace ui {
namespace ws {
-TestServerWindowDelegate::TestServerWindowDelegate()
- : root_window_(nullptr) {}
+TestServerWindowDelegate::TestServerWindowDelegate() {}
TestServerWindowDelegate::~TestServerWindowDelegate() {}
@@ -18,11 +17,14 @@ cc::mojom::DisplayCompositor* TestServerWindowDelegate::GetDisplayCompositor() {
return nullptr;
}
+const cc::SurfaceId& TestServerWindowDelegate::GetRootSurfaceId() const {
+ return root_surface_id_;
+}
+
ServerWindow* TestServerWindowDelegate::GetRootWindow(
const ServerWindow* window) {
return root_window_;
}
} // namespace ws
-
} // namespace ui
« no previous file with comments | « services/ui/ws/test_server_window_delegate.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698