#include "components/viz/common/quads/draw_quad.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <tuple>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/unguessable_token.h"
#include "cc/base/math_util.h"
#include "cc/paint/filter_operations.h"
#include "cc/test/fake_raster_source.h"
#include "components/viz/common/quads/aggregated_render_pass.h"
#include "components/viz/common/quads/aggregated_render_pass_draw_quad.h"
#include "components/viz/common/quads/compositor_render_pass.h"
#include "components/viz/common/quads/compositor_render_pass_draw_quad.h"
#include "components/viz/common/quads/debug_border_draw_quad.h"
#include "components/viz/common/quads/largest_draw_quad.h"
#include "components/viz/common/quads/picture_draw_quad.h"
#include "components/viz/common/quads/shared_element_draw_quad.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"
#include "components/viz/common/quads/surface_draw_quad.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "components/viz/common/quads/tile_draw_quad.h"
#include "components/viz/common/quads/video_hole_draw_quad.h"
#include "components/viz/common/quads/yuv_video_draw_quad.h"
#include "components/viz/common/resources/resource_id.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/transform.h"
#include "ui/gfx/hdr_metadata.h"
#include "ui/gfx/video_types.h"
ElementsAreArray;
namespace viz {
namespace {
RoundedDisplayMasksInfo;
static constexpr FrameSinkId kArbitraryFrameSinkId(1, 1);
ResourceId NextId(ResourceId id) { … }
TEST(DrawQuadTest, CopySharedQuadState) { … }
SharedQuadState* CreateSharedQuadState(CompositorRenderPass* render_pass) { … }
void CompareSharedQuadState(const SharedQuadState* source_sqs,
const SharedQuadState* copy_sqs) { … }
void CompareDrawQuad(DrawQuad* quad, DrawQuad* copy) { … }
#define CREATE_SHARED_STATE() …
#define QUAD_DATA …
#define SETUP_AND_COPY_QUAD_NEW(Type, quad) …
#define SETUP_AND_COPY_QUAD_ALL(Type, quad) …
#define SETUP_AND_COPY_QUAD_NEW_RP(Type, quad, a) …
#define SETUP_AND_COPY_QUAD_ALL_RP(Type, quad, a) …
#define CREATE_QUAD_ALL(Type, ...) …
#define CREATE_QUAD_NEW(Type, ...) …
#define CREATE_QUAD_ALL_RP(Type, a, b, c, d, e, f, g, h, i, j, k, copy_a) …
#define CREATE_QUAD_NEW_RP(Type, a, b, c, d, e, f, g, h, i, j, copy_a) …
TEST(DrawQuadTest, CopyDebugBorderDrawQuad) { … }
TEST(DrawQuadTest, CopyRenderPassDrawQuad) { … }
TEST(DrawQuadTest, CopySolidColorDrawQuad) { … }
TEST(DrawQuadTest, CopySurfaceDrawQuad) { … }
TEST(DrawQuadTest, CopyTextureDrawQuad) { … }
TEST(DrawQuadTest, CopyTileDrawQuad) { … }
TEST(DrawQuadTest, CopyVideoHoleDrawQuad) { … }
TEST(DrawQuadTest, CopyYUVVideoDrawQuad) { … }
TEST(DrawQuadTest, CopyPictureDrawQuad) { … }
class DrawQuadIteratorTest : public testing::Test { … };
TEST_F(DrawQuadIteratorTest, DebugBorderDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, CompositorRenderPassDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, SolidColorDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, SurfaceDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, TextureDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, TileDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, VideoHoleDrawQuad) { … }
TEST_F(DrawQuadIteratorTest, YUVVideoDrawQuad) { … }
TEST(DrawQuadTest, LargestQuadType) { … }
class TextureDrawQuadTest
: public testing::Test,
public ::testing::WithParamInterface<
std::tuple<RoundedDisplayMasksInfo, gfx::RectF, gfx::RectF>> { … };
TEST_P(TextureDrawQuadTest, CorrectRoundedDisplayMaskBounds) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}