Home
last modified time | relevance | path

Searched refs:gScales (Results 1 – 2 of 2) sorted by relevance

/external/skqp/gm/
Danisotropic.cpp63 SkScalar gScales[] = { 0.9f, 0.8f, 0.75f, 0.6f, 0.5f, 0.4f, 0.25f, 0.2f, 0.1f }; in onDraw() local
65 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2); in onDraw()
68 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
69 int height = SkScalarFloorToInt(fBM.height() * gScales[i]); in onDraw()
72 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
76 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
83 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
84 int width = SkScalarFloorToInt(fBM.width() * gScales[i]); in onDraw()
87 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
93 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()
/external/skia/gm/
Danisotropic.cpp63 SkScalar gScales[] = { 0.9f, 0.8f, 0.75f, 0.6f, 0.5f, 0.4f, 0.25f, 0.2f, 0.1f }; in onDraw() local
65 SkASSERT(kNumVertImages-1 == (int)SK_ARRAY_COUNT(gScales)/2); in onDraw()
68 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
69 int height = SkScalarFloorToInt(fBM.height() * gScales[i]); in onDraw()
72 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
76 yOff = (SK_ARRAY_COUNT(gScales) - i) * (fBM.height() + kSpacer) - height; in onDraw()
83 for (int i = 0; i < (int)SK_ARRAY_COUNT(gScales); ++i) { in onDraw()
84 int width = SkScalarFloorToInt(fBM.width() * gScales[i]); in onDraw()
87 if (i <= (int)SK_ARRAY_COUNT(gScales)/2) { in onDraw()
93 yOff = kSpacer + (SK_ARRAY_COUNT(gScales) - i - 1) * (fBM.height() + kSpacer); in onDraw()