gpu_host_impl_test_api.cc 735 B

123456789101112131415161718192021222324252627
  1. // Copyright 2018 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/gpu_host_impl_test_api.h"
  5. #include <algorithm>
  6. #include "components/viz/host/gpu_host_impl.h"
  7. namespace viz {
  8. GpuHostImplTestApi::GpuHostImplTestApi(GpuHostImpl* gpu_host)
  9. : gpu_host_(gpu_host) {}
  10. GpuHostImplTestApi::~GpuHostImplTestApi() = default;
  11. void GpuHostImplTestApi::FlushRemoteForTesting() {
  12. gpu_host_->gpu_service_remote_.FlushForTesting();
  13. }
  14. void GpuHostImplTestApi::SetGpuService(
  15. mojo::Remote<mojom::GpuService> gpu_service) {
  16. gpu_host_->gpu_service_remote_ = std::move(gpu_service);
  17. }
  18. } // namespace viz