#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "cc/paint/solid_color_analyzer.h"
#include <optional>
#include "base/memory/ref_counted.h"
#include "build/build_config.h"
#include "cc/paint/display_item_list.h"
#include "cc/paint/paint_filter.h"
#include "cc/paint/record_paint_canvas.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/skia_conversions.h"
namespace cc {
namespace {
class SolidColorAnalyzerTest : public testing::Test { … };
TEST_F(SolidColorAnalyzerTest, Empty) { … }
TEST_F(SolidColorAnalyzerTest, ClearTransparent) { … }
TEST_F(SolidColorAnalyzerTest, ClearSolid) { … }
TEST_F(SolidColorAnalyzerTest, ClearTranslucent) { … }
TEST_F(SolidColorAnalyzerTest, DrawColor) { … }
TEST_F(SolidColorAnalyzerTest, DrawOval) { … }
TEST_F(SolidColorAnalyzerTest, DrawRect) { … }
TEST_F(SolidColorAnalyzerTest, DrawRRect) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectClipped) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectClippedDifference) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectWithTranslateNotSolid) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectWithTranslateSolid) { … }
TEST_F(SolidColorAnalyzerTest, TwoOpsNotSolid) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectBlendModeClear) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectBlendModeSrcOver) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectRotated) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectScaledNotSolid) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectScaledSolid) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectFilterPaint) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectClipPath) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectTranslucent) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectTranslucentOverNonSolid) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectOpaqueOccludesNonSolid) { … }
TEST_F(SolidColorAnalyzerTest, DrawRectSolidWithSrcOverBlending) { … }
TEST_F(SolidColorAnalyzerTest, SaveLayer) { … }
TEST_F(SolidColorAnalyzerTest, ClipRRectCoversCanvas) { … }
}
}