// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "device/vr/util/fps_meter.h" namespace device { namespace { static constexpr size_t kDefaultNumFrameTimes = …; } // namespace FPSMeter::FPSMeter() : … { … } FPSMeter::FPSMeter(size_t window_size) : … { … } FPSMeter::~FPSMeter() = default; size_t FPSMeter::GetNumFrameTimes() { … } void FPSMeter::AddFrame(const base::TimeTicks& time_stamp) { … } bool FPSMeter::CanComputeFPS() const { … } // Simply takes the average time delta. double FPSMeter::GetFPS() const { … } } // namespace device