19 const float array[] = {
31 p.setColorFilter(cf0);
32 canvas->drawImage(img, 0, 0);
33 canvas->drawImage(img, 256, 0,
sampling, &
p);
35 p.setColorFilter(cf1);
36 canvas->drawImage(img, 0, 256,
sampling, &
p);
37 p.setColorFilter(cf1->makeComposed(cf0));
38 canvas->drawImage(img, 256, 256,
sampling, &
p);
40 p.setColorFilter(cf2);
41 canvas->drawImage(img, 0, 512,
sampling, &
p);
42 p.setColorFilter(cf2->makeComposed(cf0));
43 canvas->drawImage(img, 256, 512,
sampling, &
p);
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
static sk_sp< SkColorFilter > SRGBToLinearGamma()
static sk_sp< SkColorFilter > LinearToSRGBGamma()
SkSamplingOptions sampling
DEF_SIMPLE_GM(srgb_colorfilter, canvas, 512, 256 *3)