#include "cc/layers/picture_layer_impl.h"
#include "base/memory/raw_ptr.h"
#include "base/ranges/algorithm.h"
#include "base/timer/lap_timer.h"
#include "cc/test/fake_picture_layer_impl.h"
#include "cc/test/fake_raster_source.h"
#include "cc/test/layer_tree_impl_test_base.h"
#include "cc/tiles/tiling_set_raster_queue_all.h"
#include "cc/trees/layer_tree_impl.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 = …;
void AddTiling(float scale,
FakePictureLayerImpl* layer,
std::vector<Tile*>* all_tiles) { … }
class PictureLayerImplPerfTest : public LayerTreeImplTestBase,
public testing::Test { … };
TEST_F(PictureLayerImplPerfTest, TilingSetRasterQueueConstructAndIterate) { … }
TEST_F(PictureLayerImplPerfTest, TilingSetRasterQueueConstruct) { … }
TEST_F(PictureLayerImplPerfTest, TilingSetEvictionQueueConstructAndIterate) { … }
TEST_F(PictureLayerImplPerfTest, TilingSetEvictionQueueConstruct) { … }
}
}