Home
last modified time | relevance | path

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

123

/third_party/skia/src/pdf/
DSkPDFGradientShader.h28 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());
DSkPDFGradientShader.cpp22 SkOpts::hash(v.fColors, v.fColorCount * sizeof(SkColor)), in hash()
150 colorData[i][0] = SkColorGetR(info.fColors[i]); in gradient_function_code()
151 colorData[i][1] = SkColorGetG(info.fColors[i]); in gradient_function_code()
152 colorData[i][2] = SkColorGetB(info.fColors[i]); in gradient_function_code()
227 std::vector<SkColor> colors(info.fColors, info.fColors + colorCount); in gradientStitchCode()
790 if ((SkAlpha)SkColorGetA(key.fInfo.fColors[i]) != SK_AlphaOPAQUE) { in gradient_has_alpha()
807 clone.fInfo.fColors = clone.fColors.get(); in clone_key()
811 clone.fInfo.fColors[i] = k.fInfo.fColors[i]; in clone_key()
821 SkAlpha alpha = SkColorGetA(luminosityState.fInfo.fColors[i]); in create_smask_graphic_state()
822 luminosityState.fInfo.fColors[i] = SkColorSetARGB(255, alpha, alpha, alpha); in create_smask_graphic_state()
[all …]
/third_party/skia/gm/
Dgradients_no_texture.cpp29 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 …]
Dgradients_2pt_conical.cpp28 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 …]
Dvariedtext.cpp81 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
Dgradient_dirty_laundry.cpp27 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()
Dgammatext.cpp121 SkColor fColors[3]; member in GammaShaderTextGM
127 fColors[i] = colors[i]; in GammaShaderTextGM()
142 fShaders[i] = make_gradient(fColors[i]); in onOnceBeforeDraw()
153 draw_pair(canvas, font, fColors[i], fShaders[i]); in onDraw()
Dmatrixconvolution.cpp43 fColors[0] = colorOne; in MatrixConvolutionGM()
44 fColors[1] = colorTwo; in MatrixConvolutionGM()
62 pts, fColors, pos, 2, SkTileMode::kClamp)); in makeBitmap()
138 SkColor fColors[2]; member in skiagm::MatrixConvolutionGM
/third_party/skia/src/codec/
DSkColorTable.h36 SkASSERT(fColors != nullptr && (unsigned)index < (unsigned)fCount);
37 return fColors[index];
41 const SkPMColor* readColors() const { return fColors; } in readColors()
44 SkPMColor* fColors;
DSkColorTable.cpp16 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/tests/
DGradientTest.cpp46 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/skia/modules/sksg/src/
DSkSGColorFilter.cpp93 , 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/src/shaders/gradients/
DSkGradientShader.cpp63 buffer.writeColor4fArray(fColors, fCount); in flatten()
98 fColors = fColorStorage.begin(); in unflatten()
169 *origColors++ = desc.fColors[0]; in SkGradientShaderBase()
172 origColors[i] = desc.fColors[i]; in SkGradientShaderBase()
173 fColorsAreOpaque = fColorsAreOpaque && (desc.fColors[i].fA == 1); in SkGradientShaderBase()
177 *origColors = desc.fColors[desc.fCount - 1]; in SkGradientShaderBase()
209 desc.fColors = fOrigColors4f; in flatten()
322 SkColor4f c = xformedColors.fColors[i]; in onAppendStages()
633 fColors = colors; in SkColor4fXformer()
643 srcInfo, fColors , info.minRowBytes())); in SkColor4fXformer()
[all …]
DSk4fGradientBase.cpp203 const Sk4f clamp_color = pack_color(xformedColors.fColors[first_index], in init()
210 addMirrorIntervals(shader, xformedColors.fColors, componentScale, premulColors, false, in init()
215 iter.iterate(xformedColors.fColors, in init()
225 const Sk4f clamp_color = pack_color(xformedColors.fColors[last_index], in init()
232 addMirrorIntervals(shader, xformedColors.fColors, componentScale, premulColors, true, in init()
/third_party/skia/bench/
DVertBench.cpp45 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()
DFSRectBench.cpp35 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup()
44 paint.setColor(fColors[i % N]); in onDraw()
56 SkColor fColors[N]; member in FSRectBench
DGradientBench.cpp20 const SkColor* fColors; member
54 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
62 return SkGradientShader::MakeRadial(center, center.fX * scale, data.fColors, in MakeRadial()
72 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
85 data.fColors, data.fPos, data.fCount, tm); in MakeConical()
98 data.fColors, data.fPos, data.fCount, tm); in MakeConicalZeroRad()
111 data.fColors, data.fPos, in MakeConicalOutside()
125 data.fColors, data.fPos, in MakeConicalOutsideZeroRad()
DRectBench.cpp29 SkColor fColors[N]; member in RectBench
78 fColors[i] = rand.nextU() | 0xFF808080; in onDelayedSetup()
98 paint.setColor(fColors[i % N]); in onDraw()
246 paint.setColor(fColors[i % N]); in onDraw()
304 color = fColors[i]; in onDraw()
312 color = fColors[i]; in onDraw()
DBulkRectBench.cpp64 SkColor4f fColors[kRectCount]; member in BulkRectBench
140 batch[i].fColor = fColors[i].premul(); in drawSolidColorsBatch()
165 paint.setColor4f(fColors[i]); in drawSolidColorsRef()
169 fColors[i], SkBlendMode::kSrcOver); in drawSolidColorsRef()
212 fColors[i] = {rand.nextF(), rand.nextF(), rand.nextF(), 1.f}; in onDelayedSetup()
224 bm.eraseColor(fColors[i].toSkColor()); in onPerCanvasPreDraw()
DAlternatingColorPatternBench.cpp88 SkColor fColors[NUM_DRAWS]; member in AlternatingColorPatternBench
134 fColors[count] = fPattern1.fColor; in onDelayedSetup()
137 fColors[count] = fPattern2.fColor; in onDelayedSetup()
151 paint.setColor(fColors[j]); in onDraw()
/third_party/skia/samplecode/
DSampleGradients.cpp42 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()
/third_party/skia/src/utils/
DSkShadowTessellator.cpp37 fPositions.begin(), nullptr, fColors.begin(), in releaseVertices()
96 SkTDArray<SkColor> fColors; member in SkBaseShadowTessellator
298 fColors.push_back(umbraColor); in computeConvexShadow()
325 fColors.push_back(umbraColor); in computeConvexShadow()
333 fColors.push_back(kPenumbraColor); in computeConvexShadow()
428 fColors.push_back(umbraColor); in addEdge()
448 fColors.push_back(kPenumbraColor); in addEdge()
514 fColors.push_back(umbraColor); in addInnerPoint()
633 fColors.push_back(kPenumbraColor); in stitchConcaveRings()
636 fColors.push_back(kUmbraColor); in stitchConcaveRings()
[all …]
/third_party/skia/modules/particles/src/
DSkParticleDrawable.cpp45 , fColors(count) { in DrawAtlasArrays()
65 fColors[i] = SkColor4f{ c[0][i], c[1][i], c[2][i], c[3][i] }.toSkColor(); in DrawAtlasArrays()
71 SkAutoTMalloc<SkColor> fColors; member
90 arrays.fColors.get(), count, SkBlendMode::kModulate, sampling, in REFLECTED()
142 arrays.fColors.get(), count, SkBlendMode::kModulate, in REFLECTED()
/third_party/skia/src/core/
DSkVertices.cpp135 fVertices->fColors = (SkColor*) advance(sizes.fCSize); in init()
184 return fVertices ? const_cast<SkColor*>(fVertices->fColors) : nullptr; in colors()
225 Sizes sizes({fMode, fVertexCount, fIndexCount, !!fTexs, !!fColors}); in getSizes()
245 if (fColors != nullptr) { in dump()
246 desc += split + "\t fColors: " + std::to_string(*fColors) + "\n"; in dump()
279 if (fVertices->fColors) { in encode()
294 buffer.writeByteArray(fVertices->fColors, sizes.fCSize); in encode()
/third_party/skia/modules/androidkit/src/
DGradients.cpp24 , fColors(env->GetFloatArrayElements(jcolors, nullptr)) in GradientData()
35 fEnv->ReleaseFloatArrayElements(fJColors, fColors, 0); in ~GradientData()
40 const SkColor4f* colors() const { return reinterpret_cast<const SkColor4f*>(fColors); } in colors()
49 float* fColors; member in __anonf899e7830111::GradientData

123