Home
last modified time | relevance | path

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

/external/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 canvas.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); in DEF_TEST()
45 canvas.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); in DEF_TEST()
DDrawBitmapRectTest.cpp285 static const int gWidth = 256; variable
289 bm->allocN32Pixels(gWidth, gHeight); in create()
301 SkIRect srcR = { gWidth, 0, gWidth + 16, 16 }; in DEF_TEST()
DResourceCacheTest.cpp29 static const int gWidth = 640; variable
37 desc.fWidth = gWidth; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
39 SkImageInfo info = SkImageInfo::MakeN32Premul(gWidth, gHeight); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
44 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/skia/gm/
Dtilemodes_scaled.cpp160 static const int gWidth = 32; variable
165 makebm(&bm, kN32_SkColorType, gWidth, gHeight); in make_bm()
170 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; in make_grad()
171 SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 }; in make_grad()
172 SkScalar rad = SkIntToScalar(gWidth)/2; in make_grad()
209 const SkScalar w = SkIntToScalar(gWidth); in onDraw()
Dtilemodes.cpp156 static const 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.cpp31 const int gWidth = 64; variable
33 const SkScalar W = SkIntToScalar(gWidth);
52 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
Daarectmodes.cpp79 const int gWidth = 64; variable
81 const SkScalar W = SkIntToScalar(gWidth);
/external/skia/samplecode/
DSampleHairModes.cpp33 const int gWidth = 64; variable
35 const SkScalar W = SkIntToScalar(gWidth);
54 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()
86 SkRect r = { 0, 0, SkIntToScalar(gWidth*2), SkIntToScalar(gHeight*2) }; in onDrawContent()
DSampleAARectModes.cpp33 const int gWidth = 64; variable
35 const SkScalar W = SkIntToScalar(gWidth);