Home
last modified time | relevance | path

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

/external/skia/src/svg/
DSkSVGDevice.cpp350 SkShader::GradientInfo grInfo; in addGradientShaderResources() local
351 grInfo.fColorCount = 0; in addGradientShaderResources()
352 if (SkShader::kLinear_GradientType != shader->asAGradient(&grInfo)) { in addGradientShaderResources()
357 SkAutoSTArray<16, SkColor> grColors(grInfo.fColorCount); in addGradientShaderResources()
358 SkAutoSTArray<16, SkScalar> grOffsets(grInfo.fColorCount); in addGradientShaderResources()
359 grInfo.fColors = grColors.get(); in addGradientShaderResources()
360 grInfo.fColorOffsets = grOffsets.get(); in addGradientShaderResources()
363 shader->asAGradient(&grInfo); in addGradientShaderResources()
364 SkASSERT(grInfo.fColorCount <= grColors.count()); in addGradientShaderResources()
365 SkASSERT(grInfo.fColorCount <= grOffsets.count()); in addGradientShaderResources()
[all …]
/external/skqp/src/svg/
DSkSVGDevice.cpp347 SkShader::GradientInfo grInfo; in addGradientShaderResources() local
348 grInfo.fColorCount = 0; in addGradientShaderResources()
349 if (SkShader::kLinear_GradientType != shader->asAGradient(&grInfo)) { in addGradientShaderResources()
354 SkAutoSTArray<16, SkColor> grColors(grInfo.fColorCount); in addGradientShaderResources()
355 SkAutoSTArray<16, SkScalar> grOffsets(grInfo.fColorCount); in addGradientShaderResources()
356 grInfo.fColors = grColors.get(); in addGradientShaderResources()
357 grInfo.fColorOffsets = grOffsets.get(); in addGradientShaderResources()
360 shader->asAGradient(&grInfo); in addGradientShaderResources()
361 SkASSERT(grInfo.fColorCount <= grColors.count()); in addGradientShaderResources()
362 SkASSERT(grInfo.fColorCount <= grOffsets.count()); in addGradientShaderResources()
[all …]