1234567891011121314151617181920212223242526272829303132 |
- // 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"
- #include "build/build_config.h"
- namespace viz {
- FakeDisplayClient::FakeDisplayClient() = default;
- FakeDisplayClient::~FakeDisplayClient() = default;
- mojo::PendingRemote<mojom::DisplayClient> FakeDisplayClient::BindRemote() {
- return receiver_.BindNewPipeAndPassRemote();
- }
- #if BUILDFLAG(IS_APPLE)
- void FakeDisplayClient::OnDisplayReceivedCALayerParams(
- const gfx::CALayerParams& ca_layer_params) {}
- #endif
- #if BUILDFLAG(IS_WIN)
- void FakeDisplayClient::CreateLayeredWindowUpdater(
- mojo::PendingReceiver<mojom::LayeredWindowUpdater> receiver) {}
- #endif
- #if BUILDFLAG(IS_LINUX)
- void FakeDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) {}
- #endif
- } // namespace viz
|