Home
last modified time | relevance | path

Searched refs:fColors (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/legacy/src/core/
DSkColorTable.cpp24 fColors = (SkPMColor*)sk_malloc_throw(count * sizeof(SkPMColor)); in SkColorTable()
25 memset(fColors, 0, count * sizeof(SkPMColor)); in SkColorTable()
37 fColors = reinterpret_cast<SkPMColor*>( in SkColorTable()
39 memcpy(fColors, src.fColors, count * sizeof(SkPMColor)); in SkColorTable()
54 fColors = reinterpret_cast<SkPMColor*>( in SkColorTable()
58 memcpy(fColors, colors, count * sizeof(SkPMColor)); in SkColorTable()
69 sk_free(fColors); in ~SkColorTable()
111 build_16bitcache(f16BitCache, fColors, fCount); in lock16BitCache()
148 fColors = (SkPMColor*)sk_malloc_throw(fCount * sizeof(SkPMColor)); in SkColorTable()
149 buffer.read(fColors, fCount * sizeof(SkPMColor)); in SkColorTable()
[all …]
DSkShader.cpp327 if (info->fColors && info->fColorCount >= 1) { in asAGradient()
328 info->fColors[0] = fColor; in asAGradient()
DSkDraw.cpp2222 SkPMColor fColors[3]; member in SkTriColorShader
2233 fColors[0] = SkPreMultiplyColor(colors[index0]); in setup()
2234 fColors[1] = SkPreMultiplyColor(colors[index1]); in setup()
2235 fColors[2] = SkPreMultiplyColor(colors[index2]); in setup()
2284 dstC[i] = SkAlphaMulQ(fColors[0], scale0) + in shadeSpan()
2285 SkAlphaMulQ(fColors[1], scale1) + in shadeSpan()
2286 SkAlphaMulQ(fColors[2], scale2); in shadeSpan()
/external/skia/src/core/
DSkColorTable.cpp26 fColors = (SkPMColor*)sk_malloc_throw(count * sizeof(SkPMColor)); in SK_DEFINE_INST_COUNT()
27 memset(fColors, 0, count * sizeof(SkPMColor)); in SK_DEFINE_INST_COUNT()
40 fColors = reinterpret_cast<SkPMColor*>( in SkColorTable()
42 memcpy(fColors, src.fColors, count * sizeof(SkPMColor)); in SkColorTable()
57 fColors = reinterpret_cast<SkPMColor*>( in SkColorTable()
61 memcpy(fColors, colors, count * sizeof(SkPMColor)); in SkColorTable()
72 sk_free(fColors); in ~SkColorTable()
114 build_16bitcache(f16BitCache, fColors, fCount); in lock16BitCache()
148 fColors = (SkPMColor*)sk_malloc_throw(fCount * sizeof(SkPMColor)); in SkColorTable()
149 SkDEBUGCODE(const uint32_t countRead =) buffer.readColorArray(fColors); in SkColorTable()
[all …]
DSkShader.cpp306 if (info->fColors && info->fColorCount >= 1) { in asAGradient()
307 info->fColors[0] = fColor; in asAGradient()
DSkDraw.cpp2368 SkPMColor fColors[3]; member in SkTriColorShader
2376 fColors[0] = SkPreMultiplyColor(colors[index0]); in setup()
2377 fColors[1] = SkPreMultiplyColor(colors[index1]); in setup()
2378 fColors[2] = SkPreMultiplyColor(colors[index2]); in setup()
2427 dstC[i] = SkAlphaMulQ(fColors[0], scale0) + in shadeSpan()
2428 SkAlphaMulQ(fColors[1], scale1) + in shadeSpan()
2429 SkAlphaMulQ(fColors[2], scale2); in shadeSpan()
/external/skia/tests/
DGradientTest.cpp18 const SkColor* fColors; member
31 info->fColors = colorStorage; in gradCheck()
37 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck()
51 SkAutoTUnref<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc()
62 rec.fColors, in linear_gradproc()
75 rec.fColors, in radial_gradproc()
91 rec.fColors, in radial2_gradproc()
105 rec.fColors, in sweep_gradproc()
119 rec.fColors, in conical_gradproc()
173 rec.fColors = gColors; in TestGradientShaders()
/external/skia/include/core/
DSkColorTable.h56 SkASSERT(fColors != NULL && (unsigned)index < fCount);
57 return fColors[index];
74 return fColors; in lockColors()
100 SkPMColor* fColors;
DSkBitmap.h716 SkAutoLockColors() : fCTable(NULL), fColors(NULL) {} in SkAutoLockColors()
721 fColors = fCTable ? fCTable->lockColors() : NULL; in SkAutoLockColors()
727 fColors = ctable ? ctable->lockColors() : NULL; in SkAutoLockColors()
738 const SkPMColor* colors() const { return fColors; } in colors()
748 fColors = ctable ? ctable->lockColors() : NULL; in lockColors()
749 return fColors; in lockColors()
758 const SkPMColor* fColors; variable
DSkShader.h310 SkColor* fColors; //!< The colors in the gradient. member
/external/skia/legacy/include/core/
DSkBitmap.h689 SkASSERT(fColors != NULL && (unsigned)index < fCount);
690 return fColors[index];
707 return fColors; in lockColors()
729 SkPMColor* fColors;
766 SkAutoLockColors() : fCTable(NULL), fColors(NULL) {} in SkAutoLockColors()
771 fColors = fCTable ? fCTable->lockColors() : NULL; in SkAutoLockColors()
777 fColors = ctable ? ctable->lockColors() : NULL; in SkAutoLockColors()
788 const SkPMColor* colors() const { return fColors; } in colors()
798 fColors = ctable ? ctable->lockColors() : NULL; in lockColors()
799 return fColors; in lockColors()
[all …]
DSkShader.h261 SkColor* fColors; //!< The colors in the gradient. member
/external/skia/legacy/src/animator/
DSkDrawGradient.cpp100 fColors.setCount(count); in addPrelude()
102 fColors[index] = fDrawColors[index]->color; in addPrelude()
187fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper); in getShader()
222 …radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMap… in getShader()
DSkDrawGradient.h31 SkTDColorArray fColors; variable
/external/skia/src/animator/
DSkDrawGradient.cpp99 fColors.setCount(count); in addPrelude()
101 fColors[index] = fDrawColors[index]->color; in addPrelude()
186fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper); in getShader()
221 …radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMap… in getShader()
DSkDrawGradient.h31 SkTDColorArray fColors; variable
/external/skia/bench/
DGradientBench.cpp20 const SkColor* fColors; member
45 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, in MakeLinear()
56 data.fColors, in MakeRadial()
67 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors, in MakeSweep()
83 data.fColors, data.fPos, data.fCount, tm, mapper); in Make2Radial()
97 … data.fColors, data.fPos, data.fCount, tm, mapper); in MakeConical()
DRectBench.cpp24 SkColor fColors[N]; member in RectBench
44 fColors[i] = rand.nextU() | 0xFF808080; in RectBench()
70 paint.setColor(fColors[i]); in onDraw()
159 paint.setColor(fColors[i]); in onDraw()
250 color = fColors[i]; in onDraw()
258 color = fColors[i]; in onDraw()
DVertBench.cpp33 SkColor fColors[PTS]; member in VertBench
74 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench()
88 fPts, NULL, fColors, NULL, fIdx, IDX, paint); in onDraw()
/external/skia/gm/
Dshadertext.cpp52 const SkColor* fColors; member
67 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, in MakeLinear()
76 return SkGradientShader::CreateRadial(center, center.fX, data.fColors, in MakeRadial()
85 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors, in MakeSweep()
99 data.fColors, data.fPos, data.fCount, tm, mapper); in Make2Radial()
Dgradients.cpp15 const SkColor* fColors; member
38 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, in MakeLinear()
47 return SkGradientShader::CreateRadial(center, center.fX, data.fColors, in MakeRadial()
56 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors, in MakeSweep()
70 data.fColors, data.fPos, data.fCount, tm, mapper); in Make2Radial()
82 data.fColors, data.fPos, in Make2Conical()
/external/skia/src/pdf/
DSkPDFShader.cpp137 colorData[i][0] = SkScalarMul(SkColorGetR(info.fColors[i]), scale); in gradientFunctionCode()
138 colorData[i][1] = SkScalarMul(SkColorGetG(info.fColors[i]), scale); in gradientFunctionCode()
139 colorData[i][2] = SkScalarMul(SkColorGetB(info.fColors[i]), scale); in gradientFunctionCode()
890 memcmp(fInfo.fColors, b.fInfo.fColors, in operator ==()
933 fInfo.fColors = NULL; in State()
953 fInfo.fColors = reinterpret_cast<SkColor*>(fColorData.get()); in State()
955 reinterpret_cast<SkScalar*>(fInfo.fColors + fInfo.fColorCount); in State()
/external/skia/src/utils/
DSkNinePatch.cpp99 const SkColor* fColors; member
199 mesh.fColors = NULL; in DrawMesh()
248 mesh.fVerts, mesh.fTexs, mesh.fColors, NULL, in DrawMesh()
/external/skia/legacy/src/utils/
DSkNinePatch.cpp99 const SkColor* fColors; member
199 mesh.fColors = NULL; in DrawMesh()
248 mesh.fVerts, mesh.fTexs, mesh.fColors, NULL, in DrawMesh()
/external/skia/src/device/xps/
DSkXPSDevice.cpp810 HR(createXpsGradientStop(info.fColors[0], in createXpsLinearGradient()
815 HR(createXpsGradientStop(info.fColors[1], in createXpsLinearGradient()
836 HR(createXpsGradientStop(info.fColors[i], in createXpsLinearGradient()
859 HR(createXpsGradientStop(info.fColors[0], in createXpsRadialGradient()
864 HR(createXpsGradientStop(info.fColors[1], in createXpsRadialGradient()
913 HR(createXpsGradientStop(info.fColors[i], in createXpsRadialGradient()
942 info.fColors = NULL; in createXpsBrush()
952 info.fColors = &color; in createXpsBrush()
967 info.fColors = colors.get(); in createXpsBrush()
972 SkColor color = info.fColors[0]; in createXpsBrush()

12