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 (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 680 of file aiks_dl_blend_unittests.cc.

681 { \
682 auto src_image = \
683 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_src.png")); \
684 auto dst_image = \
685 DlImageImpeller::Make(CreateTextureForFixture("blend_mode_dst.png")); \
686 auto callback = [&]() -> sk_sp<DisplayList> { \
687 return BlendModeTest(GetContentScale(), BlendMode::k##blend_mode, \
688 src_image, dst_image, /*src_alpha=*/0.5); \
689 }; \
690 OpenPlaygroundHere(callback); \
691 }
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 666 of file aiks_dl_blend_unittests.cc.

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

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