#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "base/timer/lap_timer.h"
#include "cc/base/completion_event.h"
#include "cc/raster/synchronous_task_graph_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
namespace cc {
namespace {
static const int kTimeLimitMillis = …;
static const int kWarmupRuns = …;
static const int kTimeCheckInterval = …;
class PerfTaskImpl : public Task { … };
class TaskGraphRunnerPerfTest : public testing::Test { … };
TEST_F(TaskGraphRunnerPerfTest, BuildTaskGraph) { … }
TEST_F(TaskGraphRunnerPerfTest, ScheduleTasks) { … }
TEST_F(TaskGraphRunnerPerfTest, ScheduleAlternateTasks) { … }
TEST_F(TaskGraphRunnerPerfTest, ScheduleAndExecuteTasks) { … }
}
}