blob: 55a1ae005fa29e9bc0debaed02fa0159b397f7b5 [file] [log] [blame]
// Copyright 2019 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/viz/test/fake_display_client.h"
namespace viz {
FakeDisplayClient::FakeDisplayClient() : binding_(this) {}
FakeDisplayClient::~FakeDisplayClient() = default;
mojom::DisplayClientPtr FakeDisplayClient::BindInterfacePtr() {
mojom::DisplayClientPtr ptr;
binding_.Bind(MakeRequest(&ptr));
return ptr;
}
#if defined(OS_MACOSX)
void FakeDisplayClient::OnDisplayReceivedCALayerParams(
const gfx::CALayerParams& ca_layer_params) {}
#endif
#if defined(OS_WIN)
void FakeDisplayClient::CreateLayeredWindowUpdater(
mojom::LayeredWindowUpdaterRequest request) {}
#endif
#if defined(USE_X11)
void FakeDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) {}
#endif
} // namespace viz