Flutter Engine
 
Loading...
Searching...
No Matches
aiks_dl_blend_unittests.cc File Reference

Go to the source code of this file.

Classes

struct  impeller::testing::BlendModeSelection
 

Namespaces

namespace  impeller
 
namespace  impeller::testing
 

Macros

#define BLEND_MODE_TUPLE(blend_mode)   {#blend_mode, BlendMode::k##blend_mode},
 
#define BLEND_MODE_TEST(blend_mode)
 
#define BLEND_MODE_SRC_ALPHA_TEST(blend_mode)
 

Functions

static BlendModeSelection impeller::testing::GetBlendModeSelection ()
 
 impeller::testing::TEST_P (AiksTest, CanRenderAdvancedBlendColorFilterWithSaveLayer)
 
 impeller::testing::TEST_P (AiksTest, BlendModeShouldCoverWholeScreen)
 
 impeller::testing::TEST_P (AiksTest, CanDrawPaintWithAdvancedBlend)
 
 impeller::testing::TEST_P (AiksTest, DrawPaintWithAdvancedBlendOverFilter)
 
 impeller::testing::TEST_P (AiksTest, DrawAdvancedBlendPartlyOffscreen)
 
 impeller::testing::TEST_P (AiksTest, PaintBlendModeIsRespected)
 
 impeller::testing::TEST_P (AiksTest, ColorFilterBlend)
 
 impeller::testing::TEST_P (AiksTest, ColorFilterAdvancedBlend)
 
 impeller::testing::TEST_P (AiksTest, ColorFilterAdvancedBlendNoFbFetch)
 
 impeller::testing::TEST_P (AiksTest, BlendModePlusAlphaWideGamut)
 
 impeller::testing::TEST_P (AiksTest, BlendModePlusAlphaColorFilterWideGamut)
 
 impeller::testing::TEST_P (AiksTest, ForegroundBlendSubpassCollapseOptimization)
 
 impeller::testing::TEST_P (AiksTest, ClearBlend)
 
static sk_sp< DisplayListimpeller::testing::BlendModeTest (Vector2 content_scale, BlendMode blend_mode, const sk_sp< DlImageImpeller > &src_image, const sk_sp< DlImageImpeller > &dst_image, Scalar src_alpha)
 
 impeller::testing::TEST_P (AiksTest, CanDrawPaintMultipleTimesInteractive)
 
 impeller::testing::TEST_P (AiksTest, ForegroundPipelineBlendAppliesTransformCorrectly)
 
 impeller::testing::TEST_P (AiksTest, ForegroundAdvancedBlendAppliesTransformCorrectly)
 
 impeller::testing::TEST_P (AiksTest, FramebufferAdvancedBlendCoverage)
 
 impeller::testing::TEST_P (AiksTest, ColorWheel)
 
 impeller::testing::TEST_P (AiksTest, DestructiveBlendColorFilterFloodsClip)
 
 impeller::testing::TEST_P (AiksTest, AdvancedBlendColorFilterWithDestinationOpacity)
 
 impeller::testing::TEST_P (AiksTest, EmulatedAdvancedBlendRestore)
 

Macro Definition Documentation

◆ BLEND_MODE_SRC_ALPHA_TEST

#define BLEND_MODE_SRC_ALPHA_TEST (   blend_mode)
Value:
TEST_P(AiksTest, BlendModeSrcAlpha##blend_mode) { \
auto src_image = \
DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
auto dst_image = \
DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
auto callback = [&]() -> sk_sp<DisplayList> { \
return BlendModeTest(GetContentScale(), BlendMode::k##blend_mode, \
src_image, dst_image, /*src_alpha=*/0.5); \
}; \
OpenPlaygroundHere(callback); \
}
FlutterDesktopBinaryReply callback

Definition at line 668 of file aiks_dl_blend_unittests.cc.

669 { \
670 auto src_image = \
671 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
672 auto dst_image = \
673 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
674 auto callback = [&]() -> sk_sp<DisplayList> { \
675 return BlendModeTest(GetContentScale(), BlendMode::k##blend_mode, \
676 src_image, dst_image, /*src_alpha=*/0.5); \
677 }; \
678 OpenPlaygroundHere(callback); \
679 }
static sk_sp< DisplayList > BlendModeTest(Vector2 content_scale, BlendMode blend_mode, const sk_sp< DlImageImpeller > &src_image, const sk_sp< DlImageImpeller > &dst_image, Scalar src_alpha)

◆ BLEND_MODE_TEST

#define BLEND_MODE_TEST (   blend_mode)
Value:
TEST_P(AiksTest, BlendMode##blend_mode) { \
auto src_image = \
DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
auto dst_image = \
DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
auto callback = [&]() -> sk_sp<DisplayList> { \
return BlendModeTest(GetContentScale(), BlendMode::k##blend_mode, \
src_image, dst_image, /*src_alpha=*/1.0); \
}; \
OpenPlaygroundHere(callback); \
}

Definition at line 654 of file aiks_dl_blend_unittests.cc.

655 { \
656 auto src_image = \
657 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
658 auto dst_image = \
659 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
660 auto callback = [&]() -> sk_sp<DisplayList> { \
661 return BlendModeTest(GetContentScale(), BlendMode::k##blend_mode, \
662 src_image, dst_image, /*src_alpha=*/1.0); \
663 }; \
664 OpenPlaygroundHere(callback); \
665 }

◆ BLEND_MODE_TUPLE

#define BLEND_MODE_TUPLE (   blend_mode)    {#blend_mode, BlendMode::k##blend_mode},

Definition at line 37 of file aiks_dl_blend_unittests.cc.