summaryrefslogtreecommitdiffstats
path: root/components/mus/test_server_view_delegate.cc
blob: 2e927c3f67dd79bfb9d80674663adb47535090a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/mus/test_server_view_delegate.h"
#include "components/mus/server_view.h"

namespace mus {

TestServerViewDelegate::TestServerViewDelegate() : root_view_(nullptr) {}

TestServerViewDelegate::~TestServerViewDelegate() {}

scoped_ptr<cc::CompositorFrame>
TestServerViewDelegate::UpdateViewTreeFromCompositorFrame(
    const mojo::CompositorFramePtr& input) {
  return scoped_ptr<cc::CompositorFrame>();
}

SurfacesState* TestServerViewDelegate::GetSurfacesState() {
  return nullptr;
}

void TestServerViewDelegate::OnScheduleViewPaint(const ServerView* view) {}

const ServerView* TestServerViewDelegate::GetRootView(
    const ServerView* view) const {
  return root_view_;
}

}  // namespace mus