21#include <initializer_list>
27 const char*
names[] = {
28 "images/mandrill_128.png",
"images/color_wheel.jpg",
35 auto canvas = surf->getCanvas();
39 canvas->drawImage(
src.get(), 0, 0,
sampling,
nullptr);
40 auto dst = surf->makeImageSnapshot();
55 for (
int i = 0;
i <
N; ++
i) {
59 float B = rand.
nextF() * 0.9f + 0.05f;
DEF_TEST(sampling_with_identity_matrix, r)
#define REPORTER_ASSERT(r, cond,...)
static bool NoChangeWithIdentityMatrix(const SkSamplingOptions &sampling)
SkSamplingOptions sampling
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static const char *const names[]
DEF_SWITCHES_START aot vmservice shared library name
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeN32Premul(int width, int height)