Home
last modified time | relevance | path

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

/external/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()
/external/skqp/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
40 desc.fWidth = gWidth; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
42 SkImageInfo info = SkImageInfo::MakeN32Premul(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
46 const SkIRect size = SkIRect::MakeWH(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/sonivox/jet_tools/JetCreator/
DJetSegGraph.py227 gWidth, gHeight = self.GetSize()
228 gWidth = gWidth - (self.iEdges * 2)
229 step = int(gWidth / (self.iLengthInMeasures + .01))
292 if gWidth == 0:
295 iDiv = (gWidth)/18
328 till = gWidth * (self.iLocationInMs / self.iLengthInMs)
350 gWidth, gHeight = self.GetSize()
351 gWidth = gWidth - (self.iEdges * 2)
353 till = gWidth * (self.iLocationInMs / self.iLengthInMs)
/external/skqp/gm/
Dtilemodes_scaled.cpp156 constexpr int gWidth = 32; variable
161 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
166 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
167 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
168 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
205 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Dhairmodes.cpp28 const int gWidth = 64; variable
30 const SkScalar W = SkIntToScalar(gWidth);
49 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
Dtilemodes.cpp156 constexpr int gWidth = 32;
161 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
166 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
167 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
168 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
205 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Daarectmodes.cpp76 const int gWidth = 64; variable
78 const SkScalar W = SkIntToScalar(gWidth);
/external/skia/gm/
Dtilemodes_scaled.cpp164 constexpr int gWidth = 32; variable
169 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
174 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
175 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
176 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
208 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.cpp167 constexpr int gWidth = 32;
172 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
177 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
178 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
179 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
212 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Daarectmodes.cpp88 const int gWidth = 64; variable
90 const SkScalar W = SkIntToScalar(gWidth);
/external/skqp/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()
DSampleTiling.cpp54 static const int gWidth = 32; variable
66 makebm(&fTexture[i], gColorTypes[i], gWidth, gHeight); in TilingView()
85 SkRect r = { 0, 0, SkIntToScalar(gWidth*2), SkIntToScalar(gHeight*2) }; in onDrawContent()
DSampleAARectModes.cpp29 const int gWidth = 64; variable
31 const SkScalar W = SkIntToScalar(gWidth);
/external/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);