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

Unified Diff: components/mus/ws/test_server_window_delegate.cc

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mus unit tests Created 4 years, 10 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
Index: components/mus/ws/test_server_window_delegate.cc
diff --git a/components/mus/ws/test_server_window_delegate.cc b/components/mus/ws/test_server_window_delegate.cc
index 24677a644f09481adaf9f3d03b3e508e8235bd60..2b425ca7178031ace376c542421770e5ecea0c5b 100644
--- a/components/mus/ws/test_server_window_delegate.cc
+++ b/components/mus/ws/test_server_window_delegate.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/mus/surfaces/surfaces_state.h"
#include "components/mus/ws/test_server_window_delegate.h"
#include "components/mus/ws/server_window.h"
@@ -9,12 +10,13 @@ namespace mus {
namespace ws {
-TestServerWindowDelegate::TestServerWindowDelegate() : root_window_(nullptr) {}
+TestServerWindowDelegate::TestServerWindowDelegate()
+ : root_window_(nullptr), surfaces_state_(new SurfacesState()) {}
enne (OOO) 2016/03/02 22:04:40 Added in a real surfaces state so there was a real
sky 2016/03/02 23:45:34 SG
TestServerWindowDelegate::~TestServerWindowDelegate() {}
mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() {
- return nullptr;
+ return surfaces_state_.get();
}
void TestServerWindowDelegate::OnScheduleWindowPaint(

Powered by Google App Engine
This is Rietveld 408576698