chromium/components/viz/service/display/viz_perftest.cc

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

#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 {

// Creates a path to the JSON file in the test data folder with `group` and
// `name` as parent folders, and `frame_index` padded to 4 digits will be the
// filename.
// e.g. <test_data_folder>/render_pass_data/group/name/0001.json
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) {}

}  // namespace

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() {}

}  // namespace

VizPerfTest::VizPerfTest()
    :{}

}  // namespace viz