Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions | Variables
aiks_blur_unittests.cc File Reference
#include "flutter/impeller/aiks/aiks_unittests.h"
#include "impeller/aiks/canvas.h"
#include "impeller/entity/contents/filters/gaussian_blur_filter_contents.h"
#include "impeller/entity/render_target_cache.h"
#include "impeller/geometry/path_builder.h"
#include "impeller/playground/widgets.h"
#include "impeller/renderer/testing/mocks.h"
#include "third_party/imgui/imgui.h"

Go to the source code of this file.

Classes

struct  impeller::testing::MaskBlurTestConfig
 

Namespaces

namespace  impeller
 
namespace  impeller::testing
 

Macros

#define MASK_BLUR_VARIANT_TEST(config)
 
#define FLT_FORWARD(mock, real, method)
 

Functions

 impeller::testing::TEST_P (AiksTest, CanRenderMaskBlurHugeSigma)
 
 impeller::testing::TEST_P (AiksTest, CanRenderForegroundBlendWithMaskBlur)
 
 impeller::testing::TEST_P (AiksTest, CanRenderForegroundAdvancedBlendWithMaskBlur)
 
 impeller::testing::TEST_P (AiksTest, CanRenderBackdropBlurInteractive)
 
 impeller::testing::TEST_P (AiksTest, CanRenderBackdropBlur)
 
 impeller::testing::TEST_P (AiksTest, CanRenderBackdropBlurHugeSigma)
 
 impeller::testing::TEST_P (AiksTest, CanRenderClippedBlur)
 
 impeller::testing::TEST_P (AiksTest, ClippedBlurFilterRendersCorrectlyInteractive)
 
 impeller::testing::TEST_P (AiksTest, ClippedBlurFilterRendersCorrectly)
 
 impeller::testing::TEST_P (AiksTest, ClearBlendWithBlur)
 
 impeller::testing::TEST_P (AiksTest, BlurHasNoEdge)
 
 impeller::testing::TEST_P (AiksTest, BlurredRectangleWithShader)
 
 impeller::testing::TEST_P (AiksTest, MaskBlurWithZeroSigmaIsSkipped)
 
static Picture impeller::testing::MaskBlurVariantTest (const AiksTest &test_context, const MaskBlurTestConfig &config)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurAtPeripheryVertical)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurAtPeripheryHorizontal)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurWithoutDecalSupport)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurOneDimension)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurRotatedAndClipped)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurScaledAndClipped)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurRotatedAndClippedInteractive)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurRotatedNonUniform)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurSolidColorTinyMipMap)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurBackdropTinyMipMap)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurAnimatedBackdrop)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurStyleInnerGradient)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurStyleSolidGradient)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurStyleOuterGradient)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurStyleInner)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurStyleOuter)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurStyleSolid)
 
 impeller::testing::TEST_P (AiksTest, MaskBlurTexture)
 
 impeller::testing::TEST_P (AiksTest, GuassianBlurUpdatesMipmapContents)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurSetsMipCountOnPass)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurAllocatesCorrectMipCountRenderTarget)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurMipMapNestedLayer)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurMipMapImageFilter)
 
 impeller::testing::TEST_P (AiksTest, GaussianBlurMipMapSolidColor)
 
 impeller::testing::TEST_P (AiksTest, MaskBlurDoesntStretchContents)
 

Variables

static const std::map< std::string, MaskBlurTestConfig > impeller::testing::kPaintVariations
 

Macro Definition Documentation

◆ FLT_FORWARD

#define FLT_FORWARD (   mock,
  real,
  method 
)
Value:
EXPECT_CALL(*mock, method()) \
.WillRepeatedly(::testing::Return(real->method()));

Definition at line 499 of file aiks_blur_unittests.cc.

◆ MASK_BLUR_VARIANT_TEST

#define MASK_BLUR_VARIANT_TEST (   config)
Value:
ASSERT_TRUE(OpenPlaygroundHere( \
MaskBlurVariantTest(*this, kPaintVariations.at(#config)))); \
}
AiksPlayground AiksTest
static const std::map< std::string, MaskBlurTestConfig > kPaintVariations
static Picture MaskBlurVariantTest(const AiksTest &test_context, const MaskBlurTestConfig &config)
TEST_P(AiksTest, MaskBlurDoesntStretchContents)

Definition at line 442 of file aiks_blur_unittests.cc.