blob: d54ffe8c0608b5b4987650021ea4a1a3824b941b [file] [log] [blame]
// Copyright 2016 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 "ui/gfx/vsync_provider.h"
namespace gfx {
void FixedVSyncProvider::GetVSyncParameters(
const UpdateVSyncCallback& callback) {
callback.Run(timebase_, interval_);
}
bool FixedVSyncProvider::GetVSyncParametersIfAvailable(
base::TimeTicks* timebase,
base::TimeDelta* interval) {
*timebase = timebase_;
*interval = interval_;
return true;
}
bool FixedVSyncProvider::SupportGetVSyncParametersIfAvailable() {
return true;
}
} // namespace gfx