Lines Matching refs:grInfo
418 SkShader::GradientInfo grInfo; in addShaderResources() local
419 grInfo.fColorCount = 0; in addShaderResources()
420 if (SkShader::kLinear_GradientType != shader->asAGradient(&grInfo)) { in addShaderResources()
426 SkAutoSTArray<16, SkColor> grColors(grInfo.fColorCount); in addShaderResources()
427 SkAutoSTArray<16, SkScalar> grOffsets(grInfo.fColorCount); in addShaderResources()
428 grInfo.fColors = grColors.get(); in addShaderResources()
429 grInfo.fColorOffsets = grOffsets.get(); in addShaderResources()
432 shader->asAGradient(&grInfo); in addShaderResources()
433 SkASSERT(grInfo.fColorCount <= grColors.count()); in addShaderResources()
434 SkASSERT(grInfo.fColorCount <= grOffsets.count()); in addShaderResources()
436 resources->fPaintServer.printf("url(#%s)", addLinearGradientDef(grInfo, shader).c_str()); in addShaderResources()