chromium/cc/benchmarks/micro_benchmark_controller.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/benchmarks/micro_benchmark_controller.h"

#include <limits>
#include <utility>
#include <vector>

#include "base/functional/callback.h"
#include "base/ranges/algorithm.h"
#include "base/task/single_thread_task_runner.h"
#include "base/values.h"
#include "cc/benchmarks/invalidation_benchmark.h"
#include "cc/benchmarks/rasterize_and_record_benchmark.h"
#include "cc/benchmarks/unittest_only_benchmark.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_impl.h"

namespace cc {

int MicroBenchmarkController::next_id_ =;

namespace {

std::unique_ptr<MicroBenchmark> CreateBenchmark(
    const std::string& name,
    base::Value::Dict settings,
    MicroBenchmark::DoneCallback callback) {}

}  // namespace

MicroBenchmarkController::MicroBenchmarkController(LayerTreeHost* host)
    :{}

MicroBenchmarkController::~MicroBenchmarkController() = default;

int MicroBenchmarkController::ScheduleRun(
    const std::string& micro_benchmark_name,
    base::Value::Dict settings,
    MicroBenchmark::DoneCallback callback) {}

int MicroBenchmarkController::GetNextIdAndIncrement() {}

bool MicroBenchmarkController::SendMessage(int id, base::Value::Dict message) {}

std::vector<std::unique_ptr<MicroBenchmarkImpl>>
MicroBenchmarkController::CreateImplBenchmarks() const {}

void MicroBenchmarkController::DidUpdateLayers() {}

void MicroBenchmarkController::CleanUpFinishedBenchmarks() {}

}  // namespace cc