1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_RENDERING_BENCHMARK_H_
6 #define CONTENT_RENDERER_RENDERING_BENCHMARK_H_
10 #include "base/basictypes.h"
13 class WebViewBenchmarkSupport
;
17 class RenderingBenchmarkResults
;
19 class RenderingBenchmark
{
21 explicit RenderingBenchmark(const std::string
& name
);
22 virtual ~RenderingBenchmark();
24 virtual void SetUp(WebKit::WebViewBenchmarkSupport
* benchmarkSupport
) {}
26 virtual double Run(WebKit::WebViewBenchmarkSupport
* benchmarkSupport
) = 0;
28 virtual void TearDown(WebKit::WebViewBenchmarkSupport
* benchmarkSupport
) {}
30 const std::string
& name() { return name_
; }
33 const std::string name_
;
35 DISALLOW_COPY_AND_ASSIGN(RenderingBenchmark
);
37 } // namespace content
39 #endif // CONTENT_RENDERER_RENDERING_BENCHMARK_H_