blob: 6c7d89ae094c02b19c018b9e79b2303c273bbfac [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;
void FakeDisplayClient::DidSwapAfterSnapshotRequestReceived(
const std::vector<ui::LatencyInfo>&) {}
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