Lines Matching refs:fColorCount

33         Thus colorCount (the caller's value, and fColorCount (our value) may
36 fColorCount = 4
38 fColorCount = desc.fCount;
45 fColorCount += dummyFirst + dummyLast;
48 if (fColorCount > kColorStorageCount) {
51 sk_malloc_throw(size * fColorCount));
70 fRecs = (Rec*)(fOrigColors + fColorCount);
71 if (fColorCount > 2) {
148 int colorCount = fColorCount = buffer.getArrayCount();
155 colorCount = fColorCount = 0;
189 for (int i = 0; i < fColorCount; i++) {
197 buffer.writeColorArray(fOrigColors, fColorCount);
199 if (fColorCount > 2) {
201 for (int i = 1; i < fColorCount; i++) {
210 if (fColorCount <= 3) {
211 memcpy(colors, fOrigColors, fColorCount * sizeof(SkColor));
215 if (2 == fColorCount) {
217 } else if (3 == fColorCount &&
247 FlipGradientColors(fOrigColors, fRecs, fOrigColors, fRecs, fColorCount);
502 if (cache->fShader.fColorCount == 2) {
508 for (int i = 1; i < cache->fShader.fColorCount; i++) {
537 if (cache->fShader.fColorCount == 2) {
544 for (int i = 1; i < cache->fShader.fColorCount; i++) {
587 int count = 1 + fColorCount + 1;
588 if (fColorCount > 2) {
589 count += fColorCount - 1; // fRecs[].fPos
595 *buffer++ = fColorCount;
596 memcpy(buffer, fOrigColors, fColorCount * sizeof(SkColor));
597 buffer += fColorCount;
598 if (fColorCount > 2) {
599 for (int i = 1; i < fColorCount; i++) {
631 if (info->fColorCount >= fColorCount) {
635 SkAutoSTArray<8, SkColor> colorStorage(fColorCount);
636 SkAutoSTArray<8, Rec> recStorage(fColorCount);
639 FlipGradientColors(colorLoc, recLoc, fOrigColors, fRecs, fColorCount);
645 memcpy(info->fColors, colorLoc, fColorCount * sizeof(SkColor));
648 if (fColorCount == 2) {
651 } else if (fColorCount > 2) {
652 for (int i = 0; i < fColorCount; ++i) {
658 info->fColorCount = fColorCount;
667 str->appendf("%d colors: ", fColorCount);
669 for (int i = 0; i < fColorCount; ++i) {
671 if (i < fColorCount-1) {
676 if (fColorCount > 2) {
678 for (int i = 0; i < fColorCount; ++i) {
680 if (i < fColorCount-1) {