Lines Matching defs:size
30 RuntimeShaderGM(const char* name, SkISize size, const char* sksl, uint32_t flags = 0)
31 : fName(name), fSize(size), fFlags(flags), fSkSL(sksl) {}
86 static sk_sp<SkShader> make_shader(sk_sp<SkImage> img, SkISize size) {
87 SkMatrix scale = SkMatrix::Scale(size.width() / (float)img->width(),
88 size.height() / (float)img->height());
92 static sk_sp<SkShader> make_threshold(SkISize size) {
93 auto info = SkImageInfo::Make(size.width(), size.height(), kAlpha_8_SkColorType,
111 SkScalar x = rand.nextF() * size.width();
112 SkScalar y = rand.nextF() * size.height();
151 const SkISize size = {256, 256};
152 fThreshold = make_threshold(size);
153 fBefore = make_shader(GetResourceAsImage("images/mandrill_256.png"), size);
154 fAfter = make_shader(GetResourceAsImage("images/dog.jpg"), size);