| Index: content/public/renderer/rendering_benchmark.cc
|
| diff --git a/content/public/renderer/rendering_benchmark.cc b/content/public/renderer/rendering_benchmark.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b6091180c502268c2f198fc40243894dceeddc00
|
| --- /dev/null
|
| +++ b/content/public/renderer/rendering_benchmark.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright (c) 2012 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/public/renderer/rendering_benchmark.h"
|
| +
|
| +namespace content {
|
| +
|
| +RenderingBenchmark::RenderingBenchmark(const std::string& name,
|
| + RenderingBenchmarkResults* results)
|
| + : name_(name),
|
| + results_(results) {}
|
| +
|
| +RenderingBenchmark::~RenderingBenchmark() {}
|
| +
|
| +void RenderingBenchmark::RecordResult(const std::string& result_name,
|
| + const std::string& time_unit,
|
| + double time) {
|
| + results_->addResult(name_, result_name, time_unit, time);
|
| +}
|
| +
|
| +} // namespace content
|
|
|