Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
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 (AiksTest *test, 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(this, GetContentScale(), BlendMode::k##blend_mode, \
src_image, dst_image, /*src_alpha=*/0.5); \
}; \
OpenPlaygroundHere(callback); \
}
FlutterDesktopBinaryReply callback

Definition at line 678 of file aiks_dl_blend_unittests.cc.

679 { \
680 auto src_image = \
681 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
682 auto dst_image = \
683 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
684 auto callback = [&]() -> sk_sp<DisplayList> { \
685 return BlendModeTest(this, GetContentScale(), BlendMode::k##blend_mode, \
686 src_image, dst_image, /*src_alpha=*/0.5); \
687 }; \
688 OpenPlaygroundHere(callback); \
689 }
static sk_sp< DisplayList > BlendModeTest(AiksTest *test, 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(this, GetContentScale(), BlendMode::k##blend_mode, \
src_image, dst_image, /*src_alpha=*/1.0); \
}; \
OpenPlaygroundHere(callback); \
}

Definition at line 664 of file aiks_dl_blend_unittests.cc.

665 { \
666 auto src_image = \
667 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
668 auto dst_image = \
669 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
670 auto callback = [&]() -> sk_sp<DisplayList> { \
671 return BlendModeTest(this, GetContentScale(), BlendMode::k##blend_mode, \
672 src_image, dst_image, /*src_alpha=*/1.0); \
673 }; \
674 OpenPlaygroundHere(callback); \
675 }

◆ 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.