#include "third_party/blink/renderer/platform/graphics/paint/paint_chunker.h"
#include "base/test/scoped_feature_list.h"
#include "cc/base/features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/graphics/paint/drawing_display_item.h"
#include "third_party/blink/renderer/platform/graphics/paint/foreign_layer_display_item.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_controller_test.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_recorder.h"
#include "third_party/blink/renderer/platform/testing/fake_display_item_client.h"
#include "third_party/blink/renderer/platform/testing/paint_property_test_helpers.h"
#include "ui/gfx/geometry/skia_conversions.h"
ElementsAre;
namespace blink {
namespace {
class PaintChunkerTest : public testing::Test { … };
DisplayItem::Type DisplayItemType(int offset) { … }
class TestChunkerDisplayItem : public DrawingDisplayItem { … };
PaintRecord OpaquePaintRecord(const gfx::Rect& visual_rect) { … }
class TestChunkerOpaqueDisplayItem : public DrawingDisplayItem { … };
class TestDisplayItemRequiringSeparateChunk : public ForeignLayerDisplayItem { … };
TEST_F(PaintChunkerTest, Empty) { … }
TEST_F(PaintChunkerTest, SingleNonEmptyRange) { … }
TEST_F(PaintChunkerTest, SamePropertiesTwiceCombineIntoOneChunk) { … }
TEST_F(PaintChunkerTest, BuildMultipleChunksWithSinglePropertyChanging) { … }
TEST_F(PaintChunkerTest, BuildMultipleChunksWithDifferentPropertyChanges) { … }
TEST_F(PaintChunkerTest, BuildChunksFromNestedTransforms) { … }
TEST_F(PaintChunkerTest, ChangingPropertiesWithoutItems) { … }
TEST_F(PaintChunkerTest, CreatesSeparateChunksWhenRequested) { … }
TEST_F(PaintChunkerTest, ForceNewChunkWithNewId) { … }
TEST_F(PaintChunkerTest, ForceNewChunkWithoutNewId) { … }
TEST_F(PaintChunkerTest, NoNewChunkForSamePropertyDifferentIds) { … }
TEST_F(PaintChunkerTest, ChunksFollowingForcedChunk) { … }
TEST_F(PaintChunkerTest, ChunkIdsSkippingCache) { … }
TEST_F(PaintChunkerTest, AddHitTestDataToCurrentChunk) { … }
TEST_F(PaintChunkerTest, AddHitTestDataToCurrentChunkWheelRegionsEnabled) { … }
TEST_F(PaintChunkerTest, ChunkBoundsAndKnownToBeOpaqueAllOpaqueItems) { … }
TEST_F(PaintChunkerTest, ChunkBoundsAndKnownToBeOpaqueWithHitTest) { … }
TEST_F(PaintChunkerTest, ChunkBoundsAndKnownToBeOpaqueMixedOpaquenessItems) { … }
}
}