Home
last modified time | relevance | path

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

/external/skia/src/pdf/
DSkPDFGradientShader.cpp228 SkTDArray<SkScalar> colorOffsets(info.fColorOffsets, colorCount); in gradientStitchCode() local
233 if (colorOffsets[i - 1] > colorOffsets[i]) { in gradientStitchCode()
234 colorOffsets[i] = colorOffsets[i - 1]; in gradientStitchCode()
238 if ((colorOffsets[i - 1] == colorOffsets[i]) && (colorOffsets[i] == colorOffsets[i + 1])) { in gradientStitchCode()
241 colorOffsets.remove(i); in gradientStitchCode()
248 if (colorOffsets[i - 1] == colorOffsets[i]) { in gradientStitchCode()
249 colorOffsets[i] += 0.00001f; in gradientStitchCode()
253 if (colorOffsets[i - 1] == colorOffsets[i]) { in gradientStitchCode()
254 colorOffsets[i - 1] -= 0.00001f; in gradientStitchCode()
281 bounds->appendScalar(colorOffsets[i-1]); in gradientStitchCode()
/external/skia/src/xps/
DSkXPSDevice.cpp1002 SkAutoTArray<SkScalar> colorOffsets(info.fColorCount); in createXpsBrush() local
1004 info.fColorOffsets = colorOffsets.get(); in createXpsBrush()