Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleApp.cpp1320 static const SkScalar gAnimPeriod = 10 * SK_Scalar1; in beforeChild() local
1322 SkScalar t = SkScalarMod(secs, gAnimPeriod); in beforeChild()
1323 if (SkScalarFloorToInt(secs / gAnimPeriod) & 0x1) { in beforeChild()
1324 t = gAnimPeriod - t; in beforeChild()
1326 t = 2 * t - gAnimPeriod; in beforeChild()
1327 t *= gAnimMag / gAnimPeriod; in beforeChild()