/external/skia/src/gpu/tessellate/ |
D | GrStrokeTessellateShader.h | 36 enum class ShaderFlags { enum 44 GR_DECL_BITFIELD_CLASS_OPS_FRIENDS(ShaderFlags); 103 GrStrokeTessellateShader(Mode mode, ShaderFlags shaderFlags, const SkMatrix& viewMatrix, in GrStrokeTessellateShader() 151 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in GrStrokeTessellateShader() 155 if (fShaderFlags & ShaderFlags::kDynamicColor) { in GrStrokeTessellateShader() 157 (fShaderFlags & ShaderFlags::kWideColor) in GrStrokeTessellateShader() 170 bool hasConics() const { return fShaderFlags & ShaderFlags::kHasConics; } in hasConics() 171 bool hasDynamicStroke() const { return fShaderFlags & ShaderFlags::kDynamicStroke; } in hasDynamicStroke() 172 bool hasDynamicColor() const { return fShaderFlags & ShaderFlags::kDynamicColor; } in hasDynamicColor() 187 const ShaderFlags fShaderFlags; [all …]
|
D | GrStrokeTessellateOp.cpp | 30 fShaderFlags |= ShaderFlags::kHasConics; in GrStrokeTessellateOp() 33 fShaderFlags |= ShaderFlags::kWideColor; in GrStrokeTessellateOp() 89 if (!(combinedFlags & ShaderFlags::kDynamicStroke) && in onCombineIfPossible() 96 combinedFlags |= ShaderFlags::kDynamicStroke; in onCombineIfPossible() 98 if (!(combinedFlags & ShaderFlags::kDynamicColor) && this->headColor() != op->headColor()) { in onCombineIfPossible() 101 combinedFlags |= ShaderFlags::kDynamicColor; in onCombineIfPossible() 105 constexpr static GrTFlagsMask<ShaderFlags> kDynamicStatesMask(ShaderFlags::kDynamicStroke | in onCombineIfPossible() 106 ShaderFlags::kDynamicColor); in onCombineIfPossible() 107 ShaderFlags neededDynamicStates = combinedFlags & kDynamicStatesMask; in onCombineIfPossible() 108 if (neededDynamicStates != ShaderFlags::kNone) { in onCombineIfPossible() [all …]
|
D | GrStrokeFixedCountTessellator.cpp | 24 using ShaderFlags = GrStrokeTessellator::ShaderFlags; typedef in __anon8c3ab0930111::InstanceWriter 26 InstanceWriter(ShaderFlags shaderFlags, GrMeshDrawOp::Target* target, float matrixMaxScale, in InstanceWriter() 42 SkASSERT(fShaderFlags & ShaderFlags::kDynamicStroke); in updateDynamicStroke() 49 SkASSERT(fShaderFlags & ShaderFlags::kDynamicColor); in updateDynamicColor() 50 bool wideColor = fShaderFlags & ShaderFlags::kWideColor; in updateDynamicColor() 158 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in writeDynamicAttribs() 161 if (fShaderFlags & ShaderFlags::kDynamicColor) { in writeDynamicAttribs() 166 const ShaderFlags fShaderFlags; 214 if (!(fShaderFlags & ShaderFlags::kDynamicStroke)) { in prepare() 231 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in prepare() [all …]
|
D | GrStrokeTessellateOp.h | 25 using ShaderFlags = GrStrokeTessellateShader::ShaderFlags; 35 bool shouldUseDynamicStates(ShaderFlags neededDynamicStates) const { in shouldUseDynamicStates() 65 ShaderFlags fShaderFlags = ShaderFlags::kNone;
|
D | GrStrokeTessellator.h | 17 using ShaderFlags = GrStrokeTessellateShader::ShaderFlags; 28 GrStrokeTessellator(GrStrokeTessellateShader::Mode shaderMode, ShaderFlags shaderFlags, in GrStrokeTessellator() 48 const ShaderFlags fShaderFlags;
|
D | GrStrokeHardwareTessellator.cpp | 44 using ShaderFlags = GrStrokeTessellator::ShaderFlags; typedef in __anon078330680111::PatchWriter 53 PatchWriter(ShaderFlags shaderFlags, GrMeshDrawOp::Target* target, float matrixMaxScale, in PatchWriter() 134 SkASSERT(fShaderFlags & ShaderFlags::kDynamicStroke); in updateDynamicStroke() 139 SkASSERT(fShaderFlags & ShaderFlags::kDynamicColor); in updateDynamicColor() 140 bool wideColor = fShaderFlags & ShaderFlags::kWideColor; in updateDynamicColor() 586 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in writeDynamicAttribs() 589 if (fShaderFlags & ShaderFlags::kDynamicColor) { in writeDynamicAttribs() 594 const ShaderFlags fShaderFlags; 687 if (!(fShaderFlags & ShaderFlags::kDynamicStroke)) { in prepare() 703 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in prepare() [all …]
|
D | GrStrokeIndirectTessellator.cpp | 440 GrStrokeIndirectTessellator::GrStrokeIndirectTessellator(ShaderFlags shaderFlags, in GrStrokeIndirectTessellator() 641 using ShaderFlags = GrStrokeTessellateShader::ShaderFlags; typedef in __anon90f4518c0411::BinningInstanceWriter 646 ShaderFlags shaderFlags, size_t instanceStride, int baseInstance, in BinningInstanceWriter() 677 SkASSERT(fShaderFlags & ShaderFlags::kDynamicStroke); in updateDynamicStroke() 682 SkASSERT(fShaderFlags & ShaderFlags::kDynamicColor); in updateDynamicColor() 683 bool wideColor = fShaderFlags & ShaderFlags::kWideColor; in updateDynamicColor() 725 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in writeDynamicAttribs() 728 if (fShaderFlags & ShaderFlags::kDynamicColor) { in writeDynamicAttribs() 733 const ShaderFlags fShaderFlags; 816 if (fShaderFlags & ShaderFlags::kDynamicStroke) { in writeBuffers() [all …]
|
D | GrStrokeFixedCountTessellator.h | 18 GrStrokeFixedCountTessellator(ShaderFlags shaderFlags, const SkMatrix& viewMatrix, in GrStrokeFixedCountTessellator()
|
D | GrStrokeHardwareTessellator.h | 19 GrStrokeHardwareTessellator(ShaderFlags shaderFlags, const SkMatrix& viewMatrix, in GrStrokeHardwareTessellator()
|
D | GrStrokeIndirectTessellator.h | 25 GrStrokeIndirectTessellator(ShaderFlags, const SkMatrix& viewMatrix, PathStrokeList*,
|
D | GrStrokeTessellateShader.cpp | 1329 !(fShaderFlags & ShaderFlags::kDynamicStroke); in getGLSLProcessorKey() 1334 uint32_t key = (uint32_t)(fShaderFlags & ~ShaderFlags::kWideColor); in getGLSLProcessorKey()
|
/external/skia/bench/ |
D | TessellateBench.cpp | 23 using ShaderFlags = GrStrokeTessellateShader::ShaderFlags; typedef 207 using MakeTessellatorFn = std::unique_ptr<GrStrokeTessellator>(*)(ShaderFlags, const SkMatrix&, 211 static std::unique_ptr<GrStrokeTessellator> make_hw_tessellator(ShaderFlags shaderFlags, in make_hw_tessellator() 220 ShaderFlags shaderFlags, const SkMatrix& viewMatrix, PathStrokeList* pathStrokeList, in make_fixed_count_tessellator() 295 ShaderFlags shaderFlags, float matrixScale, const char* suffix) in TessPrepareBench() 336 const ShaderFlags fShaderFlags; 346 make_simple_cubic_path, make_hw_tessellator, ShaderFlags::kNone, 1, 351 make_simple_cubic_path, make_hw_tessellator, ShaderFlags::kNone, 5, 356 make_motionmark_paths, make_hw_tessellator, ShaderFlags::kDynamicStroke, 1, 361 make_simple_cubic_path, make_fixed_count_tessellator, ShaderFlags::kNone, 1, [all …]
|
/external/skia/tests/ |
D | StrokeIndirectTest.cpp | 45 GrStrokeIndirectTessellator tessellator(GrStrokeTessellateShader::ShaderFlags::kNone, in test_stroke()
|