Searched refs:WIDTH_HEIGHT (Results 1 – 2 of 2) sorted by relevance
/external/skia/gm/ |
D | imagemagnifier.cpp | 55 #define WIDTH_HEIGHT 256 macro 59 bitmap.allocN32Pixels(WIDTH_HEIGHT, WIDTH_HEIGHT); in make_img() 67 for (float pos = 0; pos < WIDTH_HEIGHT; pos += 16) { in make_img() 68 canvas.drawLine(0, pos, SkIntToScalar(WIDTH_HEIGHT), pos, paint); in make_img() 69 canvas.drawLine(pos, 0, pos, SkIntToScalar(WIDTH_HEIGHT), paint); in make_img() 73 result.setInfo(SkImageInfo::MakeS32(WIDTH_HEIGHT, WIDTH_HEIGHT, kPremul_SkAlphaType)); in make_img() 79 DEF_SIMPLE_GM_BG(imagemagnifier_cropped, canvas, WIDTH_HEIGHT, WIDTH_HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 85 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(WIDTH_HEIGHT-32), in DEF_SIMPLE_GM_BG() 86 SkIntToScalar(WIDTH_HEIGHT-32)); in DEF_SIMPLE_GM_BG() 92 const SkIRect cropRect = SkIRect::MakeXYWH(16, 16, WIDTH_HEIGHT-32, WIDTH_HEIGHT-32); in DEF_SIMPLE_GM_BG()
|
/external/skqp/gm/ |
D | imagemagnifier.cpp | 43 #define WIDTH_HEIGHT 256 macro 47 bitmap.allocN32Pixels(WIDTH_HEIGHT, WIDTH_HEIGHT); in make_img() 55 for (float pos = 0; pos < WIDTH_HEIGHT; pos += 16) { in make_img() 56 canvas.drawLine(0, pos, SkIntToScalar(WIDTH_HEIGHT), pos, paint); in make_img() 57 canvas.drawLine(pos, 0, pos, SkIntToScalar(WIDTH_HEIGHT), paint); in make_img() 61 result.setInfo(SkImageInfo::MakeS32(WIDTH_HEIGHT, WIDTH_HEIGHT, kPremul_SkAlphaType)); in make_img() 67 DEF_SIMPLE_GM_BG(imagemagnifier_cropped, canvas, WIDTH_HEIGHT, WIDTH_HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 73 SkRect srcRect = SkRect::MakeWH(SkIntToScalar(WIDTH_HEIGHT-32), in DEF_SIMPLE_GM_BG() 74 SkIntToScalar(WIDTH_HEIGHT-32)); in DEF_SIMPLE_GM_BG() 80 const SkRect rect = SkRect::MakeXYWH(16, 16, WIDTH_HEIGHT-32, WIDTH_HEIGHT-32); in DEF_SIMPLE_GM_BG()
|