Home | History | Annotate | Download | only in gradients

Lines Matching refs:colorCount

17              int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper) {
18 SkASSERT(colorCount > 1);
40 Thus colorCount (the caller's value, and fColorCount (our value) may
42 colorCount = 2
45 fColorCount = colorCount;
51 dummyLast = pos[colorCount - 1] != SK_Scalar1;
70 memcpy(origColors, colors, colorCount * sizeof(SkColor));
72 origColors += colorCount;
73 *origColors = colors[colorCount - 1];
93 int count = colorCount + dummyLast;
97 if (i == colorCount) { // we're really at the dummyLast
119 SkFixed dp = SK_Fixed1 / (colorCount - 1);
121 SkFixed scale = (colorCount - 1) << 8; // (1 << 24) / dp
122 for (int i = 1; i < colorCount; i++) {
143 int colorCount = fColorCount = buffer.getArrayCount();
144 if (colorCount > kColorStorageCount) {
146 fOrigColors = (SkColor*)sk_malloc_throw(size * colorCount);
154 fRecs = (Rec*)(fOrigColors + colorCount);
155 if (colorCount > 2) {
158 for (int i = 1; i < colorCount; i++) {
599 const SkScalar pos[], int colorCount,
602 if (NULL == pts || NULL == colors || colorCount < 1) {
605 EXPAND_1_COLOR(colorCount);
608 (pts, colors, pos, colorCount, mode, mapper));
613 const SkScalar pos[], int colorCount,
616 if (radius <= 0 || NULL == colors || colorCount < 1) {
619 EXPAND_1_COLOR(colorCount);
622 (center, radius, colors, pos, colorCount, mode, mapper));
631 int colorCount,
634 if (startRadius < 0 || endRadius < 0 || NULL == colors || colorCount < 1) {
637 EXPAND_1_COLOR(colorCount);
641 colorCount, mode, mapper));
650 int colorCount,
653 if (startRadius < 0 || endRadius < 0 || NULL == colors || colorCount < 1) {
659 EXPAND_1_COLOR(colorCount);
663 colorCount, mode, mapper));