Home | History | Annotate | Download | only in gradients

Lines Matching refs:colors

39     // check if we need to add in dummy start and/or end position/colors
57 // Now copy over the colors, adding the dummies as needed
209 SkGradientShaderBase::GpuColorType SkGradientShaderBase::getGpuColorType(SkColor colors[3]) const {
211 memcpy(colors, fOrigColors, fColorCount * sizeof(SkColor));
266 // now convert our colors in to PMColors
273 // we can do span16 as long as our individual colors are opaque,
301 /** We take the original colors, not our premultiplied PMColors, since we can
302 build a 16bit table as long as the original colors are opaque, even if the
578 * colors and positions. Note: we don't try to flatten the fMapper, so if one
586 // build our key: [numColors + colors[] + {positions[]} + flags ]
667 str->appendf("%d colors: ", fColorCount);
703 // assumes colors is SkColor* and pos is SkScalar*
708 tmp[0] = tmp[1] = colors[0]; \
709 colors = tmp; \
716 const SkColor colors[],
719 desc->fColors = colors;
727 const SkColor colors[],
732 if (NULL == pts || NULL == colors || colorCount < 1) {
738 desc_init(&desc, colors, pos, colorCount, mode, flags);
743 const SkColor colors[],
748 if (radius <= 0 || NULL == colors || colorCount < 1) {
754 desc_init(&desc, colors, pos, colorCount, mode, flags);
762 const SkColor colors[],
768 if (startRadius < 0 || endRadius < 0 || NULL == colors || colorCount < 1) {
774 desc_init(&desc, colors, pos, colorCount, mode, flags);
783 const SkColor colors[],
789 if (startRadius < 0 || endRadius < 0 || NULL == colors || colorCount < 1) {
803 desc_init(&desc, colors, pos, colorCount, mode, flags);
810 colorsNew[i] = colors[colorCount - i - 1];
828 const SkColor colors[],
833 if (NULL == colors || colorCount < 1) {
839 desc_init(&desc, colors, pos, colorCount, SkShader::kClamp_TileMode, flags);
977 // Note that we could skip this step if both colors are known to be opaque. Two
1135 SkColor colors[],
1147 colors[i] = random->nextU();