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"
13 #include "include/core/SkMatrix.h"
14 #include "include/core/SkRRect.h"
21 flutter::DlImageSampling::kNearestNeighbor)
25 flutter::DlImageSampling::kNearestNeighbor)
39 flutter::DlImageSampling::kMipmapLinear)
43 flutter::DlImageSampling::kMipmapLinear)
53 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.