Home
last modified time | relevance | path

Searched refs:GrPrimitiveType (Results 1 – 25 of 45) sorted by relevance

12

/external/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp19 GrPrimitiveType* overridePrimType) { in Make()
21 GrPrimitiveType primType = overridePrimType ? *overridePrimType in Make()
29 sk_sp<SkVertices> vertices, GrPrimitiveType primitiveType, in GrDrawVerticesOp()
63 if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { in GrDrawVerticesOp()
310 static uint32_t seed_vertices(GrPrimitiveType type) { in seed_vertices()
312 case GrPrimitiveType::kTriangles: in seed_vertices()
313 case GrPrimitiveType::kTriangleStrip: in seed_vertices()
314 case GrPrimitiveType::kTriangleFan: in seed_vertices()
316 case GrPrimitiveType::kPoints: in seed_vertices()
318 case GrPrimitiveType::kLines: in seed_vertices()
[all …]
DGrDrawVerticesOp.h41 GrPrimitiveType* overridePrimType = nullptr);
44 GrPrimitiveType, GrAAType, bool gammaCorrect, sk_sp<GrColorSpaceXform>,
65 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
67 return GrPrimitiveType::kTriangles == fPrimitiveType || in combinablePrimitive()
68 GrPrimitiveType::kLines == fPrimitiveType || in combinablePrimitive()
69 GrPrimitiveType::kPoints == fPrimitiveType; in combinablePrimitive()
118 GrPrimitiveType fPrimitiveType;
DGrDefaultPathRenderer.cpp64 PathGeoBuilder(GrPrimitiveType primitiveType, GrMeshDrawOp::Target* target, in PathGeoBuilder()
198 return GrPrimitiveType::kLines == fMesh.primitiveType() || in isIndexed()
199 GrPrimitiveType::kTriangles == fMesh.primitiveType(); in isIndexed()
202 return GrPrimitiveType::kLines == fMesh.primitiveType() || in isHairline()
203 GrPrimitiveType::kLineStrip == fMesh.primitiveType(); in isHairline()
207 case GrPrimitiveType::kLines: in indexScale()
209 case GrPrimitiveType::kTriangles: in indexScale()
406 GrPrimitiveType primitiveType; in onPrepareDraws()
408 primitiveType = isIndexed ? GrPrimitiveType::kLines : GrPrimitiveType::kLineStrip; in onPrepareDraws()
410 primitiveType = isIndexed ? GrPrimitiveType::kTriangles : GrPrimitiveType::kTriangleFan; in onPrepareDraws()
DGrMeshDrawOp.h35 PatternHelper(GrPrimitiveType primitiveType) : fMesh(primitiveType) {} in PatternHelper()
54 QuadHelper() : INHERITED(GrPrimitiveType::kTriangles) {} in QuadHelper()
DGrNonAAStrokeRectOp.cpp162 GrPrimitiveType primType; in onPrepareDraws()
164 primType = GrPrimitiveType::kTriangleStrip; in onPrepareDraws()
168 primType = GrPrimitiveType::kLineStrip; in onPrepareDraws()
DGrMSAAPathRenderer.cpp338 GrPrimitiveType primitiveType = fIsIndexed ? GrPrimitiveType::kTriangles in onPrepareDraws()
339 : GrPrimitiveType::kTriangleFan; in onPrepareDraws()
447 GrMesh quadMeshes(GrPrimitiveType::kTriangles); in onPrepareDraws()
DGrTessellatingPathRenderer.cpp339 GrMesh mesh(TESSELLATOR_WIREFRAME ? GrPrimitiveType::kLines : GrPrimitiveType::kTriangles); in drawVertices()
/external/skia/src/gpu/ccpr/
DGrCCPRCoverageProcessor.h39 static constexpr GrPrimitiveType kTrianglesGrPrimitiveType = GrPrimitiveType::kTriangles;
40 static constexpr GrPrimitiveType kQuadraticsGrPrimitiveType = GrPrimitiveType::kTriangles;
41 static constexpr GrPrimitiveType kCubicsGrPrimitiveType = GrPrimitiveType::kLinesAdjacency;
/external/skia/include/gpu/
DGrTypes.h223 enum class GrPrimitiveType { enum
232 static constexpr int kNumGrPrimitiveTypes = (int) GrPrimitiveType::kLinesAdjacency + 1;
234 static constexpr bool GrIsPrimTypeLines(GrPrimitiveType type) { in GrIsPrimTypeLines()
235 return GrPrimitiveType::kLines == type || in GrIsPrimTypeLines()
236 GrPrimitiveType::kLineStrip == type || in GrIsPrimTypeLines()
237 GrPrimitiveType::kLinesAdjacency == type; in GrIsPrimTypeLines()
240 static constexpr bool GrIsPrimTypeTris(GrPrimitiveType type) { in GrIsPrimTypeTris()
241 return GrPrimitiveType::kTriangles == type || in GrIsPrimTypeTris()
242 GrPrimitiveType::kTriangleStrip == type || in GrIsPrimTypeTris()
243 GrPrimitiveType::kTriangleFan == type; in GrIsPrimTypeTris()
[all …]
/external/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.h56 GrPrimitiveType,
68 void sendMeshToGpu(const GrPrimitiveProcessor& primProc, GrPrimitiveType primType, in sendMeshToGpu()
74 void sendIndexedMeshToGpu(const GrPrimitiveProcessor& primProc, GrPrimitiveType primType, in sendIndexedMeshToGpu()
82 void sendInstancedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
87 void sendIndexedInstancedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
DGrVkPipeline.cpp97 static VkPrimitiveTopology gr_primitive_type_to_vk_topology(GrPrimitiveType primitiveType) { in gr_primitive_type_to_vk_topology()
99 case GrPrimitiveType::kTriangles: in gr_primitive_type_to_vk_topology()
101 case GrPrimitiveType::kTriangleStrip: in gr_primitive_type_to_vk_topology()
103 case GrPrimitiveType::kTriangleFan: in gr_primitive_type_to_vk_topology()
105 case GrPrimitiveType::kPoints: in gr_primitive_type_to_vk_topology()
107 case GrPrimitiveType::kLines: in gr_primitive_type_to_vk_topology()
109 case GrPrimitiveType::kLineStrip: in gr_primitive_type_to_vk_topology()
111 case GrPrimitiveType::kLinesAdjacency: in gr_primitive_type_to_vk_topology()
118 static void setup_input_assembly_state(GrPrimitiveType primitiveType, in setup_input_assembly_state()
422 GrPrimitiveType primitiveType, in Create()
DGrVkPipelineStateBuilder.h39 GrPrimitiveType,
57 GrPrimitiveType primitiveType,
DGrVkResourceProvider.h50 GrPrimitiveType primitiveType,
105 GrPrimitiveType,
175 GrPrimitiveType,
DGrVkPipelineStateBuilder.cpp21 GrPrimitiveType primitiveType, in CreatePipelineState()
90 GrPrimitiveType primitiveType, in finalize()
DGrVkPipeline.h35 GrPrimitiveType primitiveType,
DGrVkGpuCommandBuffer.cpp471 GrPrimitiveType primitiveType, in prepareDrawState()
570 GrPrimitiveType primitiveType = meshes[0].primitiveType(); in onDraw()
620 GrPrimitiveType, in sendInstancedMeshToGpu() argument
634 GrPrimitiveType, in sendIndexedInstancedMeshToGpu() argument
DGrVkPipelineStateCache.cpp79 GrPrimitiveType primitiveType, in refPipelineState()
DGrVkPipelineState.h79 GrPrimitiveType primitiveType,
/external/skia/src/gpu/
DGrMesh.h24 GrMesh(GrPrimitiveType primitiveType) in GrMesh()
30 GrPrimitiveType primitiveType() const { return fPrimitiveType; } in primitiveType()
51 virtual void sendMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
55 virtual void sendIndexedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
61 virtual void sendInstancedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
66 virtual void sendIndexedInstancedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
82 GrPrimitiveType fPrimitiveType;
DSkGr.h166 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
169 return GrPrimitiveType::kTriangles; in SkVertexModeToGrPrimitiveType()
171 return GrPrimitiveType::kTriangleStrip; in SkVertexModeToGrPrimitiveType()
173 return GrPrimitiveType::kTriangleFan; in SkVertexModeToGrPrimitiveType()
176 return GrPrimitiveType::kPoints; in SkVertexModeToGrPrimitiveType()
DSkGpuDevice.cpp293 static const GrPrimitiveType gPointMode2PrimitiveType[] = {
294 GrPrimitiveType::kPoints,
295 GrPrimitiveType::kLines,
296 GrPrimitiveType::kLineStrip
342 GrPrimitiveType primitiveType = gPointMode2PrimitiveType[mode]; in drawPoints()
349 if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { in drawPoints()
1607 GrPrimitiveType primitiveType = GrPrimitiveType::kLines; in wireframeVertices()
/external/skia/tests/
DGrMeshTest.cpp151 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
171 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
191 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
217 GrMesh mesh(indexed ? GrPrimitiveType::kTriangles in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
218 : GrPrimitiveType::kTriangleStrip); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/src/gpu/gl/
DGrGLGpu.h110 void sendMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
113 void sendIndexedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
118 void sendInstancedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
123 void sendIndexedInstancedMeshToGpu(const GrPrimitiveProcessor&, GrPrimitiveType,
631 GrPrimitiveType fLastPrimitiveType;
DGrGLGpu.cpp456 fLastPrimitiveType = static_cast<GrPrimitiveType>(-1); in onResetContext()
2508 if (meshes[i].primitiveType() == GrPrimitiveType::kPoints) { in draw()
2553 static GrGLenum gr_primitive_type_to_gl_mode(GrPrimitiveType primitiveType) { in gr_primitive_type_to_gl_mode()
2555 case GrPrimitiveType::kTriangles: in gr_primitive_type_to_gl_mode()
2557 case GrPrimitiveType::kTriangleStrip: in gr_primitive_type_to_gl_mode()
2559 case GrPrimitiveType::kTriangleFan: in gr_primitive_type_to_gl_mode()
2561 case GrPrimitiveType::kPoints: in gr_primitive_type_to_gl_mode()
2563 case GrPrimitiveType::kLines: in gr_primitive_type_to_gl_mode()
2565 case GrPrimitiveType::kLineStrip: in gr_primitive_type_to_gl_mode()
2567 case GrPrimitiveType::kLinesAdjacency: in gr_primitive_type_to_gl_mode()
[all …]
/external/skia/samplecode/
DSampleCCPRGeometry.cpp254 GrMesh mesh(4 == vertexCount ? GrPrimitiveType::kLinesAdjacency : GrPrimitiveType::kTriangles); in onExecute()

12