/external/skia/legacy/src/core/ |
D | SkColorTable.cpp | 24 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 …]
|
D | SkShader.cpp | 327 if (info->fColors && info->fColorCount >= 1) { in asAGradient() 328 info->fColors[0] = fColor; in asAGradient()
|
D | SkDraw.cpp | 2222 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/ |
D | SkColorTable.cpp | 26 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 …]
|
D | SkShader.cpp | 306 if (info->fColors && info->fColorCount >= 1) { in asAGradient() 307 info->fColors[0] = fColor; in asAGradient()
|
D | SkDraw.cpp | 2368 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/ |
D | GradientTest.cpp | 18 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/ |
D | SkColorTable.h | 56 SkASSERT(fColors != NULL && (unsigned)index < fCount); 57 return fColors[index]; 74 return fColors; in lockColors() 100 SkPMColor* fColors;
|
D | SkBitmap.h | 716 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
|
D | SkShader.h | 310 SkColor* fColors; //!< The colors in the gradient. member
|
/external/skia/legacy/include/core/ |
D | SkBitmap.h | 689 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 …]
|
D | SkShader.h | 261 SkColor* fColors; //!< The colors in the gradient. member
|
/external/skia/legacy/src/animator/ |
D | SkDrawGradient.cpp | 100 fColors.setCount(count); in addPrelude() 102 fColors[index] = fDrawColors[index]->color; in addPrelude() 187 … fColors.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()
|
D | SkDrawGradient.h | 31 SkTDColorArray fColors; variable
|
/external/skia/src/animator/ |
D | SkDrawGradient.cpp | 99 fColors.setCount(count); in addPrelude() 101 fColors[index] = fDrawColors[index]->color; in addPrelude() 186 … fColors.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()
|
D | SkDrawGradient.h | 31 SkTDColorArray fColors; variable
|
/external/skia/bench/ |
D | GradientBench.cpp | 20 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()
|
D | RectBench.cpp | 24 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()
|
D | VertBench.cpp | 33 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/ |
D | shadertext.cpp | 52 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()
|
D | gradients.cpp | 15 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/ |
D | SkPDFShader.cpp | 137 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/ |
D | SkNinePatch.cpp | 99 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/ |
D | SkNinePatch.cpp | 99 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/ |
D | SkXPSDevice.cpp | 810 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()
|