#include "cc/benchmarks/rasterize_and_record_benchmark.h"
#include <stddef.h>
#include <algorithm>
#include <limits>
#include <optional>
#include <string>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "cc/benchmarks/rasterize_and_record_benchmark_impl.h"
#include "cc/layers/content_layer_client.h"
#include "cc/layers/layer.h"
#include "cc/layers/picture_layer.h"
#include "cc/layers/recording_source.h"
#include "cc/paint/display_item_list.h"
#include "cc/trees/layer_tree_host.h"
#include "ui/gfx/geometry/rect.h"
namespace cc {
namespace {
const int kDefaultRecordRepeatCount = …;
const int kDefaultRasterizeRepeatCount = …;
}
RasterizeAndRecordBenchmark::RasterizeAndRecordBenchmark(
base::Value::Dict settings,
MicroBenchmark::DoneCallback callback)
: … { … }
RasterizeAndRecordBenchmark::~RasterizeAndRecordBenchmark() { … }
void RasterizeAndRecordBenchmark::DidUpdateLayers(
LayerTreeHost* layer_tree_host) { … }
void RasterizeAndRecordBenchmark::RecordRasterResults(
base::Value::Dict results_value) { … }
std::unique_ptr<MicroBenchmarkImpl>
RasterizeAndRecordBenchmark::CreateBenchmarkImpl(
scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner) { … }
void RasterizeAndRecordBenchmark::RunOnLayer(PictureLayer* layer) { … }
}