Home
last modified time | relevance | path

Searched refs:gWidth (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/tests/
DSkImageTest.cpp13 static const int gWidth = 20; variable
21 srcBitmap.allocN32Pixels(gWidth, gHeight); in DEF_TEST()
24 SkIRect r = SkIRect::MakeXYWH(5, 5, gWidth - 5, gWidth - 5); in DEF_TEST()
34 tgt.allocN32Pixels(gWidth, gHeight); in DEF_TEST()
43 tgt.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); in DEF_TEST()
46 tgt.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); in DEF_TEST()
DDrawBitmapRectTest.cpp235 static const int gWidth = 256; variable
239 bm->allocN32Pixels(gWidth, gHeight); in create()
251 SkRect srcR = { gWidth, 0, gWidth + 16, 16 }; in DEF_TEST()
DResourceCacheTest.cpp31 static const int gWidth = 640; variable
37 SkImageInfo info = SkImageInfo::MakeN32Premul(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
41 const SkIRect size = SkIRect::MakeWH(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/flutter/skia/tests/
DSkImageTest.cpp12 static const int gWidth = 20; variable
20 srcBitmap.allocN32Pixels(gWidth, gHeight); in DEF_TEST()
23 SkIRect r = SkIRect::MakeXYWH(5, 5, gWidth - 5, gWidth - 5); in DEF_TEST()
33 tgt.allocN32Pixels(gWidth, gHeight); in DEF_TEST()
42 tgt.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); in DEF_TEST()
45 tgt.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); in DEF_TEST()
DDrawBitmapRectTest.cpp231 static const int gWidth = 256; variable
235 bm->allocN32Pixels(gWidth, gHeight); in create()
247 SkIRect srcR = { gWidth, 0, gWidth + 16, 16 }; in DEF_TEST()
DResourceCacheTest.cpp31 static const int gWidth = 640; variable
37 SkImageInfo info = SkImageInfo::MakeN32Premul(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
41 const SkIRect size = SkIRect::MakeWH(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/gm/
Dtilemodes_scaled.cpp165 constexpr int gWidth = 32; variable
170 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
175 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
176 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
177 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
209 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Dhairmodes.cpp40 const int gWidth = 64; variable
42 const SkScalar W = SkIntToScalar(gWidth);
61 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
Dtilemodes.cpp165 constexpr int gWidth = 32;
170 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
175 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
176 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
177 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
210 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Daarectmodes.cpp88 const int gWidth = 64; variable
90 const SkScalar W = SkIntToScalar(gWidth);
/third_party/flutter/skia/gm/
Dtilemodes_scaled.cpp165 constexpr int gWidth = 32; variable
170 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
175 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
176 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
177 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
209 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Dhairmodes.cpp40 const int gWidth = 64; variable
42 const SkScalar W = SkIntToScalar(gWidth);
61 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
Dtilemodes.cpp168 constexpr int gWidth = 32;
173 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
178 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
179 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
180 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
213 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Daarectmodes.cpp87 const int gWidth = 64; variable
89 const SkScalar W = SkIntToScalar(gWidth);
/third_party/skia/samplecode/
DSampleHairModes.cpp29 const int gWidth = 64; variable
31 const SkScalar W = SkIntToScalar(gWidth);
49 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
DSampleAARectModes.cpp29 const int gWidth = 64; variable
31 const SkScalar W = SkIntToScalar(gWidth);
/third_party/flutter/skia/samplecode/
DSampleHairModes.cpp29 const int gWidth = 64; variable
31 const SkScalar W = SkIntToScalar(gWidth);
49 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
DSampleAARectModes.cpp29 const int gWidth = 64; variable
31 const SkScalar W = SkIntToScalar(gWidth);