#include "components/viz/service/display/viz_perftest.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "components/viz/common/quads/render_pass_io.h"
#include "components/viz/test/paths.h"
#include "third_party/zlib/google/zip.h"
namespace viz {
namespace {
std::optional<base::FilePath> MakeTestDataJsonPath(const std::string& group,
const std::string& name,
size_t frame_index) { … }
std::optional<base::Value> ReadValueFromJson(base::FilePath& json_path) { … }
}
bool CompositorRenderPassListFromJSON(
const std::string& tag,
const std::string& site,
uint32_t year,
size_t frame_index,
CompositorRenderPassList* render_pass_list) { … }
std::optional<base::FilePath> UnzipFrameData(const std::string& group,
const std::string& name) { … }
bool FrameDataFromJson(base::FilePath& json_path,
std::vector<FrameData>* frame_data_list) { … }
namespace {
constexpr char kPerfTestTimeMillis[] = …;
base::TimeDelta TestTimeLimit() { … }
}
VizPerfTest::VizPerfTest()
: … { … }
}