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

// Copyright 2016 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/bsp_tree.h"

#include <stddef.h>

#include <memory>
#include <sstream>

#include "base/containers/circular_deque.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/memory/raw_ptr_exclusion.h"
#include "base/path_service.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "base/timer/lap_timer.h"
#include "cc/layers/layer.h"
#include "cc/test/fake_content_layer_client.h"
#include "cc/test/fake_layer_tree_host_client.h"
#include "cc/test/layer_tree_json_parser.h"
#include "cc/test/layer_tree_test.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/transform_node.h"
#include "components/viz/service/display/draw_polygon.h"
#include "components/viz/test/paths.h"
#include "testing/perf/perf_result_reporter.h"

namespace viz {
namespace {

static const int kTimeLimitMillis =;
static const int kWarmupRuns =;
static const int kTimeCheckInterval =;

const char kMetricPrefixBspTree[] =;
const char kMetricCalcDrawPropsTimeUs[] =;

perf_test::PerfResultReporter SetUpBspTreeReporter(const std::string& story) {}

class BspTreePerfTest : public cc::LayerTreeTest {};

TEST_F(BspTreePerfTest, LayerSorterCubes) {}

TEST_F(BspTreePerfTest, LayerSorterRubik) {}

TEST_F(BspTreePerfTest, BspTreeCubes) {}

TEST_F(BspTreePerfTest, BspTreeRubik) {}

TEST_F(BspTreePerfTest, BspTreeCubes_2) {}

TEST_F(BspTreePerfTest, BspTreeCubes_4) {}

}  // namespace
}  // namespace viz