blob: 9f413655264654113935ffe7ed4059240d46534b [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
} // namespace viz