5 #include "display_list/dl_blend_mode.h"
6 #include "display_list/dl_color.h"
7 #include "display_list/dl_tile_mode.h"
8 #include "flutter/testing/testing.h"
19 flutter::DlImageSampling::kNearestNeighbor)
23 flutter::DlImageSampling::kNearestNeighbor)
37 flutter::DlImageSampling::kMipmapLinear)
41 flutter::DlImageSampling::kMipmapLinear)
51 const flutter::DlColor color = flutter::DlColor(0x8040C020);
impeller::SamplerDescriptor ToSamplerDescriptor(const flutter::DlImageSampling options)
Color ToColor(const flutter::DlColor &color)
TEST(AllocationSizeTest, CanCreateTypedAllocations)
@ kLinear
Sample from the two nearest mip levels and linearly interpolate.
@ kBase
The texture is sampled as if it only had a single mipmap level.
static impeller::SamplerDescriptor ToSamplerDescriptor(const flutter::DlFilterMode options)
constexpr bool ScalarNearlyEqual(Scalar x, Scalar y, Scalar tolerance=kEhCloseEnough)
@ kNearest
Select nearest to the sample point. Most widely supported.