fake_display_client.cc 915 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/viz/test/fake_display_client.h"
  5. #include "build/build_config.h"
  6. namespace viz {
  7. FakeDisplayClient::FakeDisplayClient() = default;
  8. FakeDisplayClient::~FakeDisplayClient() = default;
  9. mojo::PendingRemote<mojom::DisplayClient> FakeDisplayClient::BindRemote() {
  10. return receiver_.BindNewPipeAndPassRemote();
  11. }
  12. #if BUILDFLAG(IS_APPLE)
  13. void FakeDisplayClient::OnDisplayReceivedCALayerParams(
  14. const gfx::CALayerParams& ca_layer_params) {}
  15. #endif
  16. #if BUILDFLAG(IS_WIN)
  17. void FakeDisplayClient::CreateLayeredWindowUpdater(
  18. mojo::PendingReceiver<mojom::LayeredWindowUpdater> receiver) {}
  19. #endif
  20. #if BUILDFLAG(IS_LINUX)
  21. void FakeDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) {}
  22. #endif
  23. } // namespace viz