summaryrefslogtreecommitdiffstats
path: root/content/common/browser_rendering_stats.cc
blob: 87e38575e8a7b8ce6f21477f961b3749c8ba3e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2013 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 "content/common/browser_rendering_stats.h"

namespace content {

BrowserRenderingStats::BrowserRenderingStats() : input_event_count(0) {}

BrowserRenderingStats::~BrowserRenderingStats() {}

void BrowserRenderingStats::EnumerateFields(
    cc::RenderingStats::Enumerator* enumerator) const {
  enumerator->AddInt("inputEventCount", input_event_count);
  enumerator->AddTimeDeltaInSecondsF("totalInputLatency", total_input_latency);
}

}  // namespace content