chromium/cc/paint/solid_color_analyzer_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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) {}

// TODO(vmpstr): Generalize the DrawRect test cases so that we can test both
// Rect and RRect.
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) {}

}  // namespace
}  // namespace cc