/third_party/flutter/skia/src/pdf/ |
D | SkPDFGradientShader.h | 28 std::unique_ptr<SkColor[]> fColors; member 48 && SkPackedArrayEqual(u.fColors, v.fColors, u.fColorCount) 53 SkASSERT(u.fInfo.fColors == u.fColors.get()); 55 SkASSERT(v.fInfo.fColors == v.fColors.get());
|
/third_party/skia/src/pdf/ |
D | SkPDFGradientShader.h | 28 std::unique_ptr<SkColor[]> fColors; member 48 && SkPackedArrayEqual(u.fColors, v.fColors, u.fColorCount) 53 SkASSERT(u.fInfo.fColors == u.fColors.get()); 55 SkASSERT(v.fInfo.fColors == v.fColors.get());
|
/third_party/flutter/skia/src/codec/ |
D | SkColorTable.h | 36 SkASSERT(fColors != nullptr && (unsigned)index < (unsigned)fCount); 37 return fColors[index]; 41 const SkPMColor* readColors() const { return fColors; } in readColors() 44 SkPMColor* fColors;
|
D | SkColorTable.cpp | 16 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in SkColorTable() 18 memcpy(fColors, colors, count * sizeof(SkPMColor)); in SkColorTable() 22 sk_free(fColors); in ~SkColorTable()
|
/third_party/skia/src/codec/ |
D | SkColorTable.h | 36 SkASSERT(fColors != nullptr && (unsigned)index < (unsigned)fCount); 37 return fColors[index]; 41 const SkPMColor* readColors() const { return fColors; } in readColors() 44 SkPMColor* fColors;
|
D | SkColorTable.cpp | 16 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in SkColorTable() 18 memcpy(fColors, colors, count * sizeof(SkPMColor)); in SkColorTable() 22 sk_free(fColors); in ~SkColorTable()
|
/third_party/flutter/skia/gm/ |
D | gradients_no_texture.cpp | 29 const SkColor* fColors; member 45 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 52 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 59 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 71 data.fColors, data.fPos, data.fCount, tm); in Make2Radial() 82 data.fColors, data.fPos, in Make2Conical() 144 SkColor* fColors; member 148 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos() 150 delete[] fColors; in ~ColorPos() 155 fColors = new SkColor[count]; in construct() [all …]
|
D | variedtext.cpp | 81 fColors[i] = random.nextU(); in onOnceBeforeDraw() 82 fColors[i] |= 0xFF000000; in onOnceBeforeDraw() 83 fColors[i] = ToolUtils::color_to_565(fColors[i]); in onOnceBeforeDraw() 93 fPaint.setColor(fColors[i]); in onOnceBeforeDraw() 121 fPaint.setColor(fColors[i]); in onDraw() 160 SkColor fColors[kCnt]; member in VariedTextGM
|
D | gradients_2pt_conical.cpp | 28 const SkColor* fColors; member 60 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside() 70 return SkGradientShader::MakeTwoPointConical(center0, radius, center1, radius, data.fColors, in Make2ConicalOutsideStrip() 81 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip() 94 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside() 107 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip() 118 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter() 129 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenterReversed() 142 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad() 155 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip() [all …]
|
/third_party/skia/gm/ |
D | gradients_no_texture.cpp | 29 const SkColor* fColors; member 45 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 52 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 59 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 71 data.fColors, data.fPos, data.fCount, tm); in Make2Radial() 82 data.fColors, data.fPos, in Make2Conical() 144 SkColor* fColors; member 148 ColorPos() : fColors(nullptr), fPos(nullptr), fCount(0) {} in ColorPos() 150 delete[] fColors; in ~ColorPos() 155 fColors = new SkColor[count]; in construct() [all …]
|
D | variedtext.cpp | 81 fColors[i] = random.nextU(); in onOnceBeforeDraw() 82 fColors[i] |= 0xFF000000; in onOnceBeforeDraw() 83 fColors[i] = ToolUtils::color_to_565(fColors[i]); in onOnceBeforeDraw() 93 fPaint.setColor(fColors[i]); in onOnceBeforeDraw() 119 fPaint.setColor(fColors[i]); in onDraw() 158 SkColor fColors[kCnt]; member in VariedTextGM
|
D | gradients_2pt_conical.cpp | 28 const SkColor* fColors; member 60 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside() 70 return SkGradientShader::MakeTwoPointConical(center0, radius, center1, radius, data.fColors, in Make2ConicalOutsideStrip() 81 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip() 94 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside() 107 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip() 118 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter() 129 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenterReversed() 142 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad() 155 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip() [all …]
|
D | gradient_dirty_laundry.cpp | 27 const SkColor* fColors; member 51 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 56 return SkGradientShader::MakeRadial(pt, pt.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial() 61 return SkGradientShader::MakeSweep(pt.fX, pt.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
|
/third_party/flutter/skia/modules/sksg/src/ |
D | SkSGColorFilter.cpp | 93 , fColors(std::move(colors)) { in GradientColorFilter() 94 for (const auto& color : fColors) { in GradientColorFilter() 100 for (const auto& color : fColors) { in ~GradientColorFilter() 208 for (const auto& color : fColors) { in onRevalidateFilter() 216 SkASSERT(fColors.size() > 1); in onRevalidateFilter() 217 auto gradientCF = (fColors.size() > 2) ? MakeNColorGradient(fColors) in onRevalidateFilter() 218 : Make2ColorGradient(fColors[0], fColors[1]); in onRevalidateFilter()
|
/third_party/skia/modules/sksg/src/ |
D | SkSGColorFilter.cpp | 93 , fColors(std::move(colors)) { in GradientColorFilter() 94 for (const auto& color : fColors) { in GradientColorFilter() 100 for (const auto& color : fColors) { in ~GradientColorFilter() 208 for (const auto& color : fColors) { in onRevalidateFilter() 216 SkASSERT(fColors.size() > 1); in onRevalidateFilter() 217 auto gradientCF = (fColors.size() > 2) ? MakeNColorGradient(fColors) in onRevalidateFilter() 218 : Make2ColorGradient(fColors[0], fColors[1]); in onRevalidateFilter()
|
/third_party/skia/tests/ |
D | GradientTest.cpp | 46 const SkColor* fColors; member 59 info->fColors = colorStorage; in gradCheck() 65 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck() 79 sk_sp<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc() 83 info.fColors = nullptr; in color_gradproc() 91 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc() 102 buildRec.fColors, buildRec.fPos, in radial_gradproc() 114 buildRec.fColors, buildRec.fPos, in sweep_gradproc() 128 buildRec.fColors, in conical_gradproc() 174 rec.fColors = gColors; in TestGradientShaders() [all …]
|
/third_party/flutter/skia/tests/ |
D | GradientTest.cpp | 43 const SkColor* fColors; member 56 info->fColors = colorStorage; in gradCheck() 62 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck() 76 sk_sp<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc() 80 info.fColors = nullptr; in color_gradproc() 88 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc() 99 buildRec.fColors, buildRec.fPos, in radial_gradproc() 111 buildRec.fColors, buildRec.fPos, in sweep_gradproc() 125 buildRec.fColors, in conical_gradproc() 171 rec.fColors = gColors; in TestGradientShaders() [all …]
|
/third_party/flutter/skia/src/effects/ |
D | SkOverdrawColorFilter.cpp | 50 ctx->colors = fColors; in onAppendStages() 67 buffer.writeByteArray(fColors, kNumColors * sizeof(SkPMColor)); in flatten() 93 return GrSkSLFP::Make(context, overdrawIndex, "Overdraw", SKSL_OVERDRAW_SRC, fColors, in asFragmentProcessor() 94 sizeof(fColors)); in asFragmentProcessor()
|
/third_party/flutter/skia/bench/ |
D | VertBench.cpp | 33 SkColor fColors[PTS]; member in VertBench 73 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench() 86 fPts, nullptr, fColors, IDX, fIdx); in onDraw() 119 SkColor fColors[N]; member in AtlasBench 154 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup() 163 colors = fColors; in onDraw()
|
D | FSRectBench.cpp | 35 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup() 44 paint.setColor(fColors[i % N]); in onDraw() 56 SkColor fColors[N]; member in FSRectBench
|
/third_party/flutter/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 59 buffer.writeColor4fArray(fColors, fCount); in flatten() 94 fColors = fColorStorage.begin(); in unflatten() 165 *origColors++ = desc.fColors[0]; in SkGradientShaderBase() 168 origColors[i] = desc.fColors[i]; in SkGradientShaderBase() 169 fColorsAreOpaque = fColorsAreOpaque && (desc.fColors[i].fA == 1); in SkGradientShaderBase() 173 *origColors = desc.fColors[desc.fCount - 1]; in SkGradientShaderBase() 205 desc.fColors = fOrigColors4f; in flatten() 316 SkColor4f c = xformedColors.fColors[i]; in onAppendStages() 447 fColors = colors; in SkColor4fXformer() 455 info.makeColorSpace(sk_ref_sp(src)), fColors , info.minRowBytes()); in SkColor4fXformer() [all …]
|
/third_party/skia/bench/ |
D | FSRectBench.cpp | 35 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup() 44 paint.setColor(fColors[i % N]); in onDraw() 56 SkColor fColors[N]; member in FSRectBench
|
D | VertBench.cpp | 45 SkColor fColors[PTS]; member in VertBench 102 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench() 132 const SkColor* cols = (fFlags & kColors_VertFlag) ? fColors : nullptr; in onDraw() 175 SkColor fColors[N]; member in AtlasBench 213 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup() 222 colors = fColors; in onDraw()
|
/third_party/flutter/skia/samplecode/ |
D | SampleGradients.cpp | 43 const SkColor* fColors; member 65 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 72 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, in MakeRadial() 80 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 92 data.fColors, data.fPos, data.fCount, tm); in Make2Conical() 103 data.fColors, data.fPos, data.fCount, tm); in Make2ConicalConcentric()
|
/third_party/skia/samplecode/ |
D | SampleGradients.cpp | 42 const SkColor* fColors; member 64 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear() 71 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, in MakeRadial() 79 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep() 91 data.fColors, data.fPos, data.fCount, tm); in Make2Conical() 102 data.fColors, data.fPos, data.fCount, tm); in Make2ConicalConcentric()
|