diff options
author | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-12 01:30:29 +0000 |
---|---|---|
committer | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-12 01:30:29 +0000 |
commit | 666d7cffc8025696c6743889fcd4c9bb2980ba70 (patch) | |
tree | 3372cd68db769e6ec1649998d17ff697feadb577 /cc/debug/unittest_only_benchmark.h | |
parent | d31c53449787ba09aaea6251d9ac878669218817 (diff) | |
download | chromium_src-666d7cffc8025696c6743889fcd4c9bb2980ba70.zip chromium_src-666d7cffc8025696c6743889fcd4c9bb2980ba70.tar.gz chromium_src-666d7cffc8025696c6743889fcd4c9bb2980ba70.tar.bz2 |
cc: Add MicroBenchmarkController plumbing.
This patch adds the necessary plumbing for micro benchmark controller.
The plan is as follows:
- MicroBenchmarkController will live on LayerTreeHost
- The schedule functionality will be exposed to
gpu benchmarking extension
- Javascript bindings will allow external code to schedule certain
benchmarks (specified by name) to be run right after Layer::Update.
R=enne@chromium.org,nduca@chromium.org
Review URL: https://codereview.chromium.org/26593002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/unittest_only_benchmark.h')
-rw-r--r-- | cc/debug/unittest_only_benchmark.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cc/debug/unittest_only_benchmark.h b/cc/debug/unittest_only_benchmark.h new file mode 100644 index 0000000..9570b66 --- /dev/null +++ b/cc/debug/unittest_only_benchmark.h @@ -0,0 +1,23 @@ +// 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. + +#ifndef CC_DEBUG_UNITTEST_ONLY_BENCHMARK_H_ +#define CC_DEBUG_UNITTEST_ONLY_BENCHMARK_H_ + +#include "cc/debug/micro_benchmark.h" + +namespace cc { + +class UnittestOnlyBenchmark : public MicroBenchmark { + public: + explicit UnittestOnlyBenchmark(const DoneCallback& callback); + virtual ~UnittestOnlyBenchmark(); + + virtual void DidUpdateLayers(LayerTreeHost* host) OVERRIDE; +}; + +} // namespace cc + +#endif // CC_DEBUG_UNITTEST_ONLY_BENCHMARK_H_ + |