Searched refs:fColors (Results 1 - 25 of 30) sorted by relevance

12

/external/skia/legacy/src/core/
H A DSkColorTable.cpp24 fColors = (SkPMColor*)sk_malloc_throw(count * sizeof(SkPMColor));
25 memset(fColors, 0, count * sizeof(SkPMColor));
37 fColors = reinterpret_cast<SkPMColor*>(
39 memcpy(fColors, src.fColors, count * sizeof(SkPMColor));
54 fColors = reinterpret_cast<SkPMColor*>(
58 memcpy(fColors, colors, count * sizeof(SkPMColor));
69 sk_free(fColors);
111 build_16bitcache(f16BitCache, fColors, fCount);
148 fColors
[all...]
H A DSkShader.cpp327 if (info->fColors && info->fColorCount >= 1) {
328 info->fColors[0] = fColor;
H A DSkDraw.cpp2222 SkPMColor fColors[3]; member in class:SkTriColorShader
2233 fColors[0] = SkPreMultiplyColor(colors[index0]);
2234 fColors[1] = SkPreMultiplyColor(colors[index1]);
2235 fColors[2] = SkPreMultiplyColor(colors[index2]);
2284 dstC[i] = SkAlphaMulQ(fColors[0], scale0) +
2285 SkAlphaMulQ(fColors[1], scale1) +
2286 SkAlphaMulQ(fColors[2], scale2);
/external/skia/src/core/
H A DSkColorTable.cpp26 fColors = (SkPMColor*)sk_malloc_throw(count * sizeof(SkPMColor));
27 memset(fColors, 0, count * sizeof(SkPMColor));
40 fColors = reinterpret_cast<SkPMColor*>(
42 memcpy(fColors, src.fColors, count * sizeof(SkPMColor));
57 fColors = reinterpret_cast<SkPMColor*>(
61 memcpy(fColors, colors, count * sizeof(SkPMColor));
72 sk_free(fColors);
114 build_16bitcache(f16BitCache, fColors, fCount);
148 fColors
[all...]
H A DSkShader.cpp306 if (info->fColors && info->fColorCount >= 1) {
307 info->fColors[0] = fColor;
/external/skia/include/core/
H A DSkColorTable.h56 SkASSERT(fColors != NULL && (unsigned)index < fCount);
57 return fColors[index];
74 return fColors;
100 SkPMColor* fColors; member in class:SkColorTable
H A DSkBitmap.h716 SkAutoLockColors() : fCTable(NULL), fColors(NULL) {}
721 fColors = fCTable ? fCTable->lockColors() : NULL;
727 fColors = ctable ? ctable->lockColors() : NULL;
738 const SkPMColor* colors() const { return fColors; }
748 fColors = ctable ? ctable->lockColors() : NULL;
749 return fColors;
758 const SkPMColor* fColors; member in class:SkAutoLockColors
H A DSkShader.h271 * many entries in fColors and fColorOffsets can be used, if they are
274 * insufficient space to store all of the color-offset pairs, fColors
307 // of fColors/fColorOffsets on input, and
310 SkColor* fColors; //!< The colors in the gradient. member in struct:SkShader::GradientInfo
/external/skia/tests/
H A DGradientTest.cpp18 const SkColor* fColors; member in struct:GradRec
31 info->fColors = colorStorage;
37 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor)));
51 SkAutoTUnref<SkShader> s(new SkColorShader(rec.fColors[0]));
62 rec.fColors,
75 rec.fColors,
91 rec.fColors,
105 rec.fColors,
119 rec.fColors,
[all...]
/external/skia/bench/
H A DVertBench.cpp33 SkColor fColors[PTS]; member in class:VertBench
74 fColors[i] = rand.nextU() | (0xFF << 24);
88 fPts, NULL, fColors, NULL, fIdx, IDX, paint);
H A DGradientBench.cpp20 const SkColor* fColors; member in struct:GradData
45 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos,
56 data.fColors,
67 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors,
83 data.fColors, data.fPos, data.fCount, tm, mapper);
97 data.fColors, data.fPos, data.fCount, tm, mapper);
H A DRectBench.cpp24 SkColor fColors[N]; member in class:RectBench
44 fColors[i] = rand.nextU() | 0xFF808080;
70 paint.setColor(fColors[i]);
159 paint.setColor(fColors[i]);
250 color = fColors[i];
258 color = fColors[i];
/external/skia/legacy/include/core/
H A DSkBitmap.h689 SkASSERT(fColors != NULL && (unsigned)index < fCount);
690 return fColors[index];
707 return fColors;
729 SkPMColor* fColors; member in class:SkColorTable
766 SkAutoLockColors() : fCTable(NULL), fColors(NULL) {}
771 fColors = fCTable ? fCTable->lockColors() : NULL;
777 fColors = ctable ? ctable->lockColors() : NULL;
788 const SkPMColor* colors() const { return fColors; }
798 fColors = ctable ? ctable->lockColors() : NULL;
799 return fColors;
808 const SkPMColor* fColors; member in class:SkAutoLockColors
[all...]
H A DSkShader.h223 * many entries in fColors and fColorOffsets can be used, if they are
226 * insufficient space to store all of the color-offset pairs, fColors
258 // of fColors/fColorOffsets on input, and
261 SkColor* fColors; //!< The colors in the gradient. member in struct:SkShader::GradientInfo
/external/skia/legacy/src/animator/
H A DSkDrawGradient.cpp100 fColors.setCount(count);
102 fColors[index] = fDrawColors[index]->color;
187 fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper);
222 radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper);
H A DSkDrawGradient.h31 SkTDColorArray fColors; member in class:SkGradient
/external/skia/src/animator/
H A DSkDrawGradient.cpp99 fColors.setCount(count);
101 fColors[index] = fDrawColors[index]->color;
186 fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper);
221 radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper);
H A DSkDrawGradient.h31 SkTDColorArray fColors; member in class:SkDrawGradient
/external/skia/gm/
H A Dshadertext.cpp52 const SkColor* fColors; member in struct:skiagm::GradData
67 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos,
76 return SkGradientShader::CreateRadial(center, center.fX, data.fColors,
85 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors,
99 data.fColors, data.fPos, data.fCount, tm, mapper);
H A Dgradients.cpp15 const SkColor* fColors; member in struct:skiagm::GradData
38 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos,
47 return SkGradientShader::CreateRadial(center, center.fX, data.fColors,
56 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors,
70 data.fColors, data.fPos, data.fCount, tm, mapper);
82 data.fColors, data.fPos,
/external/skia/src/pdf/
H A DSkPDFShader.cpp137 colorData[i][0] = SkScalarMul(SkColorGetR(info.fColors[i]), scale);
138 colorData[i][1] = SkScalarMul(SkColorGetG(info.fColors[i]), scale);
139 colorData[i][2] = SkScalarMul(SkColorGetB(info.fColors[i]), scale);
890 memcmp(fInfo.fColors, b.fInfo.fColors,
933 fInfo.fColors = NULL;
953 fInfo.fColors = reinterpret_cast<SkColor*>(fColorData.get());
955 reinterpret_cast<SkScalar*>(fInfo.fColors + fInfo.fColorCount);
/external/skia/legacy/src/utils/
H A DSkNinePatch.cpp99 const SkColor* fColors; member in struct:Mesh
199 mesh.fColors = NULL;
248 mesh.fVerts, mesh.fTexs, mesh.fColors, NULL,
/external/skia/src/utils/
H A DSkNinePatch.cpp99 const SkColor* fColors; member in struct:Mesh
199 mesh.fColors = NULL;
248 mesh.fVerts, mesh.fTexs, mesh.fColors, NULL,
/external/skia/src/device/xps/
H A DSkXPSDevice.cpp810 HR(createXpsGradientStop(info.fColors[0],
815 HR(createXpsGradientStop(info.fColors[1],
836 HR(createXpsGradientStop(info.fColors[i],
859 HR(createXpsGradientStop(info.fColors[0],
864 HR(createXpsGradientStop(info.fColors[1],
913 HR(createXpsGradientStop(info.fColors[i],
942 info.fColors = NULL;
952 info.fColors = &color;
967 info.fColors = colors.get();
972 SkColor color = info.fColors[
[all...]
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp525 if (info->fColors) {
526 memcpy(info->fColors, fOrigColors, fColorCount * sizeof(SkColor));

Completed in 310 milliseconds

12