#include "cc/benchmarks/micro_benchmark.h"
#include <utility>
#include "base/check.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "base/values.h"
#include "cc/benchmarks/micro_benchmark_impl.h"
namespace cc {
MicroBenchmark::MicroBenchmark(DoneCallback callback)
: … { … }
MicroBenchmark::~MicroBenchmark() = default;
bool MicroBenchmark::IsDone() const { … }
void MicroBenchmark::DidUpdateLayers(LayerTreeHost* layer_tree_host) { … }
void MicroBenchmark::NotifyDone(base::Value::Dict result) { … }
void MicroBenchmark::RunOnLayer(PictureLayer* layer) { … }
bool MicroBenchmark::ProcessMessage(base::Value::Dict message) { … }
bool MicroBenchmark::ProcessedForBenchmarkImpl() const { … }
std::unique_ptr<MicroBenchmarkImpl> MicroBenchmark::GetBenchmarkImpl(
scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner) { … }
std::unique_ptr<MicroBenchmarkImpl> MicroBenchmark::CreateBenchmarkImpl(
scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner) { … }
}