| // 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. |
| |
| #if defined(__clang__) |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wunused-private-field" |
| #elif defined(_MSC_VER) |
| #pragma warning(push) |
| #pragma warning(disable:4056) |
| #pragma warning(disable:4065) |
| #pragma warning(disable:4756) |
| #endif |
| |
| |
| #include "services/viz/privileged/interfaces/compositing/vsync_parameter_observer.mojom-test-utils.h" |
| |
| #include <utility> |
| |
| #include "base/bind.h" |
| #include "base/run_loop.h" |
| #include "mojo/public/mojom/base/time.mojom.h" |
| |
| |
| #ifndef SERVICES_VIZ_PRIVILEGED_INTERFACES_COMPOSITING_VSYNC_PARAMETER_OBSERVER_MOJOM_JUMBO_H_ |
| #define SERVICES_VIZ_PRIVILEGED_INTERFACES_COMPOSITING_VSYNC_PARAMETER_OBSERVER_MOJOM_JUMBO_H_ |
| #include "mojo/public/cpp/base/time_mojom_traits.h" |
| #endif |
| |
| |
| namespace viz { |
| namespace mojom { |
| |
| |
| void VSyncParameterObserverInterceptorForTesting::OnUpdateVSyncParameters(base::TimeTicks timebase, base::TimeDelta interval) { |
| GetForwardingInterface()->OnUpdateVSyncParameters(std::move(timebase), std::move(interval)); |
| } |
| VSyncParameterObserverAsyncWaiter::VSyncParameterObserverAsyncWaiter( |
| VSyncParameterObserver* proxy) : proxy_(proxy) {} |
| |
| VSyncParameterObserverAsyncWaiter::~VSyncParameterObserverAsyncWaiter() = default; |
| |
| |
| |
| |
| |
| |
| } // namespace mojom |
| } // namespace viz |
| |
| #if defined(__clang__) |
| #pragma clang diagnostic pop |
| #elif defined(_MSC_VER) |
| #pragma warning(pop) |
| #endif |