Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/tessellate/shaders/
H A DGrPathTessellationShader_MiddleOut.cpp16 using skgpu::PatchAttribs;
36 const SkPMColor4f& color, PatchAttribs attribs) in MiddleOutShader()
41 if (fAttribs & PatchAttribs::kFanPoint) { in MiddleOutShader()
46 if (fAttribs & PatchAttribs::kColor) { in MiddleOutShader()
48 (fAttribs & PatchAttribs::kWideColorIfEnabled) in MiddleOutShader()
53 if (fAttribs & PatchAttribs::kExplicitCurveType) { in MiddleOutShader()
86 b->add32((uint32_t)(fAttribs & ~PatchAttribs::kWideColorIfEnabled));
109 if (middleOutShader.fAttribs & PatchAttribs::kExplicitCurveType) { in makeProgramImpl()
137 if (middleOutShader.fAttribs & PatchAttribs::kFanPoint) { in makeProgramImpl()
204 if (middleOutShader.fAttribs & PatchAttribs in makeProgramImpl()
[all...]
H A DGrStrokeTessellationShader.h26 using PatchAttribs = skgpu::PatchAttribs;
37 GrStrokeTessellationShader(const GrShaderCaps&, Mode, PatchAttribs, const SkMatrix& viewMatrix,
41 PatchAttribs attribs() const { return fPatchAttribs; } in attribs()
42 bool hasDynamicStroke() const { return fPatchAttribs & PatchAttribs::kStrokeParams; } in hasDynamicStroke()
43 bool hasDynamicColor() const { return fPatchAttribs & PatchAttribs::kColor; } in hasDynamicColor()
44 bool hasExplicitCurveType() const { return fPatchAttribs & PatchAttribs::kExplicitCurveType; } in hasExplicitCurveType()
73 const PatchAttribs fPatchAttribs;
H A DGrStrokeTessellationShader.cpp17 PatchAttribs attribs, in GrStrokeTessellationShader()
33 SkASSERT(shaderCaps.infinitySupport() != (attribs & PatchAttribs::kExplicitCurveType)); in GrStrokeTessellationShader()
36 SkASSERT(!(attribs & PatchAttribs::kExplicitCurveType)); in GrStrokeTessellationShader()
76 if (fPatchAttribs & PatchAttribs::kStrokeParams) { in GrStrokeTessellationShader()
80 if (fPatchAttribs & PatchAttribs::kColor) { in GrStrokeTessellationShader()
82 (fPatchAttribs & PatchAttribs::kWideColorIfEnabled) in GrStrokeTessellationShader()
87 if (fPatchAttribs & PatchAttribs::kExplicitCurveType) { in GrStrokeTessellationShader()
411 !(fPatchAttribs & PatchAttribs::kStrokeParams); in addToKey()
416 uint32_t key = (uint32_t)(fPatchAttribs & ~PatchAttribs::kColor); in addToKey()
H A DGrPathTessellationShader_Hardware.cpp14 using skgpu::PatchAttribs;
37 PatchAttribs attribs) in HardwareWedgeShader()
179 PatchAttribs attribs) in HardwareCurveShader()
350 PatchAttribs attribs) { in MakeHardwareTessellationShader()
351 SkASSERT(!(attribs & PatchAttribs::kColor)); // Not yet implemented. in MakeHardwareTessellationShader()
352 SkASSERT(!(attribs & PatchAttribs::kExplicitCurveType)); // Not yet implemented. in MakeHardwareTessellationShader()
353 if (attribs & PatchAttribs::kFanPoint) { in MakeHardwareTessellationShader()
H A DGrPathTessellationShader.cpp15 using skgpu::PatchAttribs;
25 PatchAttribs::kNone) { in SimpleTriangleShader()
66 skgpu::PatchAttribs attribs, in Make()
72 !(attribs & (PatchAttribs::kColor | PatchAttribs::kExplicitCurveType))) { in Make()
138 if (!(shader.fAttribs & PatchAttribs::kColor)) { in onEmitCode()
157 if (!(shader.fAttribs & PatchAttribs::kColor)) { in setData()
H A DGrPathTessellationShader.h29 skgpu::PatchAttribs,
45 // If PatchAttribs::kFanPoint is set, an additional triangle is added, connecting the base of
51 skgpu::PatchAttribs);
55 // If PatchAttribs::kFanPoint is set, an additional triangle is added, connecting the base of
60 skgpu::PatchAttribs);
130 const SkPMColor4f& color, skgpu::PatchAttribs attribs) in GrPathTessellationShader()
164 const skgpu::PatchAttribs fAttribs;
/third_party/skia/src/gpu/tessellate/
H A DTessellation.h72 enum class PatchAttribs { class
84 GR_MAKE_BITFIELD_CLASS_OPS(PatchAttribs)
101 // This float2 gets written out with each patch/instance if PatchAttribs::kStrokeParams is enabled.
117 constexpr size_t PatchAttribsStride(PatchAttribs attribs) { in PatchAttribsStride()
118 return (attribs & PatchAttribs::kFanPoint ? sizeof(float) * 2 : 0) + in PatchAttribsStride()
119 (attribs & PatchAttribs::kStrokeParams ? sizeof(float) * 2 : 0) + in PatchAttribsStride()
120 (attribs & PatchAttribs::kColor in PatchAttribsStride()
121 ? (attribs & PatchAttribs::kWideColorIfEnabled ? sizeof(float) in PatchAttribsStride()
123 (attribs & PatchAttribs::kExplicitCurveType ? sizeof(float) : 0); in PatchAttribsStride()
H A DPathWedgeTessellator.h23 PatchAttribs attribs = PatchAttribs::kNone) { in Make()
27 PathWedgeTessellator(bool infinitySupport, PatchAttribs attribs = PatchAttribs::kNone) in PathWedgeTessellator() argument
29 fAttribs |= PatchAttribs::kFanPoint; in PathWedgeTessellator()
21 Make(SkArenaAlloc* arena, bool infinitySupport, PatchAttribs attribs = PatchAttribs::kNone) Make() argument
H A DPatchWriter.h27 PatchAttribs attribs, in PatchWriter()
44 SkASSERT(fPatchAttribs & PatchAttribs::kFanPoint); in updateFanPointAttrib()
51 SkASSERT(fPatchAttribs & PatchAttribs::kColor); in updateColorAttrib()
52 fColorAttrib.set(color, fPatchAttribs & PatchAttribs::kWideColorIfEnabled); in updateColorAttrib()
142 vertexWriter << If((fPatchAttribs & PatchAttribs::kFanPoint), fFanPointAttrib) in outputPatchAttribs()
143 << If((fPatchAttribs & PatchAttribs::kColor), fColorAttrib) in outputPatchAttribs()
144 << If((fPatchAttribs & PatchAttribs::kExplicitCurveType), explicitCurveType); in outputPatchAttribs()
147 const PatchAttribs fPatchAttribs;
H A DPathCurveTessellator.h22 PatchAttribs attribs = PatchAttribs::kNone) { in Make()
27 PatchAttribs attribs = PatchAttribs::kNone) in PathCurveTessellator()
20 Make(SkArenaAlloc* arena, bool infinitySupport, PatchAttribs attribs = PatchAttribs::kNone) Make() argument
26 PathCurveTessellator(bool infinitySupport, PatchAttribs attribs = PatchAttribs::kNone) PathCurveTessellator() argument
H A DStrokeFixedCountTessellator.cpp34 InstanceWriter(PatchAttribs attribs, in InstanceWriter()
55 SkASSERT(fAttribs & PatchAttribs::kStrokeParams); in updateDynamicStroke()
62 SkASSERT(fAttribs & PatchAttribs::kColor); in updateDynamicColor()
63 bool wideColor = fAttribs & PatchAttribs::kWideColorIfEnabled; in updateDynamicColor()
188 if (fAttribs & PatchAttribs::kStrokeParams) { in writeDynamicAttribs()
191 if (fAttribs & PatchAttribs::kColor) { in writeDynamicAttribs()
194 if (fAttribs & PatchAttribs::kExplicitCurveType) { in writeDynamicAttribs()
206 const PatchAttribs fAttribs;
261 if (!(fAttribs & PatchAttribs::kStrokeParams)) { in prepare()
278 if (fAttribs & PatchAttribs in prepare()
[all...]
H A DPathTessellator.h65 PatchAttribs patchAttribs() const { return fAttribs; } in patchAttribs()
140 PathTessellator(bool infinitySupport, PatchAttribs attribs) : fAttribs(attribs) { in PathTessellator()
142 fAttribs |= PatchAttribs::kExplicitCurveType; in PathTessellator()
146 PatchAttribs fAttribs;
H A DStrokeHardwareTessellator.cpp58 PatchWriter(PatchAttribs attribs, in PatchWriter()
142 SkASSERT(fAttribs & PatchAttribs::kStrokeParams); in updateDynamicStroke()
147 SkASSERT(fAttribs & PatchAttribs::kColor); in updateDynamicColor()
148 bool wideColor = fAttribs & PatchAttribs::kWideColorIfEnabled; in updateDynamicColor()
600 if (fAttribs & PatchAttribs::kStrokeParams) { in writeDynamicAttribs()
603 if (fAttribs & PatchAttribs::kColor) { in writeDynamicAttribs()
606 SkASSERT(!(fAttribs & PatchAttribs::kExplicitCurveType)); in writeDynamicAttribs()
622 const PatchAttribs fAttribs;
718 if (!(fAttribs & PatchAttribs::kStrokeParams)) { in prepare()
734 if (fAttribs & PatchAttribs in prepare()
[all...]
H A DPatchWriter.cpp30 bool needsInnerTriangles = !(fPatchAttribs & PatchAttribs::kFanPoint); in chopAndWriteQuads()
74 bool needsInnerTriangles = !(fPatchAttribs & PatchAttribs::kFanPoint); in chopAndWriteConics()
112 bool needsInnerTriangles = !(fPatchAttribs & PatchAttribs::kFanPoint); in chopAndWriteCubics()
H A DStrokeTessellator.h33 StrokeTessellator(PatchAttribs attribs) : fAttribs(attribs) {} in StrokeTessellator()
54 PatchAttribs fAttribs;
H A DStrokeHardwareTessellator.h21 StrokeHardwareTessellator(PatchAttribs attribs) : StrokeTessellator(attribs) {} in StrokeHardwareTessellator()
H A DStrokeFixedCountTessellator.h24 StrokeFixedCountTessellator(PatchAttribs attribs) : StrokeTessellator(attribs) {} in StrokeFixedCountTessellator()
H A DPathCurveTessellator.cpp50 if (fAttribs & PatchAttribs::kColor) { in writePatches()
H A DPathWedgeTessellator.cpp149 if (fAttribs & PatchAttribs::kColor) { in writePatches()
/third_party/skia/src/gpu/ops/
H A DStrokeTessellateOp.cpp51 fPatchAttribs |= PatchAttribs::kWideColorIfEnabled; in StrokeTessellateOp()
87 fPatchAttribs |= PatchAttribs::kExplicitCurveType; in finalize()
115 if (!(combinedAttribs & PatchAttribs::kStrokeParams) && in onCombineIfPossible()
122 combinedAttribs |= PatchAttribs::kStrokeParams; in onCombineIfPossible()
124 if (!(combinedAttribs & PatchAttribs::kColor) && this->headColor() != op->headColor()) { in onCombineIfPossible()
127 combinedAttribs |= PatchAttribs::kColor; in onCombineIfPossible()
131 constexpr static GrTFlagsMask<PatchAttribs> kDynamicStatesMask(PatchAttribs::kStrokeParams | in onCombineIfPossible()
132 PatchAttribs::kColor); in onCombineIfPossible()
133 PatchAttribs neededDynamicState in onCombineIfPossible()
[all...]
H A DStrokeTessellateOp.h37 bool shouldUseDynamicStates(PatchAttribs neededDynamicStates) const { in shouldUseDynamicStates()
69 PatchAttribs fPatchAttribs = PatchAttribs::kNone;
H A DPathTessellateOp.h43 fPatchAttribs |= PatchAttribs::kWideColorIfEnabled; in PathTessellateOp()
67 PatchAttribs fPatchAttribs = PatchAttribs::kNone;
H A DPathTessellateOp.cpp56 if (!(fPatchAttribs & PatchAttribs::kColor) && in onCombineIfPossible()
59 fPatchAttribs |= PatchAttribs::kColor; in onCombineIfPossible()
H A DPathInnerTriangulateOp.cpp28 skgpu::PatchAttribs::kNone) { in HullShader()
/third_party/skia/bench/
H A DTessellateBench.cpp247 using MakeTessellatorFn = std::unique_ptr<StrokeTessellator>(*)(PatchAttribs);
249 static std::unique_ptr<StrokeTessellator> make_hw_tessellator(PatchAttribs attribs) { in make_hw_tessellator()
253 static std::unique_ptr<StrokeTessellator> make_fixed_count_tessellator(PatchAttribs attribs) { in make_fixed_count_tessellator()
327 PatchAttribs attribs, float matrixScale, const char* suffix) in TessPrepareBench()
371 const PatchAttribs fPatchAttribs;
381 make_simple_cubic_path, make_hw_tessellator, PatchAttribs::kNone, 1,
386 make_simple_cubic_path, make_hw_tessellator, PatchAttribs::kNone, 5,
391 make_motionmark_paths, make_hw_tessellator, PatchAttribs::kStrokeParams, 1,
396 make_simple_cubic_path, make_fixed_count_tessellator, PatchAttribs::kNone, 1,
401 make_simple_cubic_path, make_fixed_count_tessellator, PatchAttribs
[all...]

Completed in 13 milliseconds