From f7eb015083aba8942031145736251dd32094115d Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Mon, 12 Jun 2017 20:44:08 -0600 Subject: Add GrPrimitiveType::kLinesAdjacency Converts GrPrimitiveType to an enum class and adds kLinesAdjacency. Bug: skia: Change-Id: If57d26277182aac1375e8181211ddaf7ea6d1e0a Reviewed-on: https://skia-review.googlesource.com/19581 Reviewed-by: Brian Salomon Commit-Queue: Chris Dalton --- src/gpu/GrGpuCommandBuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu/GrGpuCommandBuffer.cpp') diff --git a/src/gpu/GrGpuCommandBuffer.cpp b/src/gpu/GrGpuCommandBuffer.cpp index 9659ca3b9a..d9a2fa880b 100644 --- a/src/gpu/GrGpuCommandBuffer.cpp +++ b/src/gpu/GrGpuCommandBuffer.cpp @@ -45,6 +45,8 @@ bool GrGpuCommandBuffer::draw(const GrPipeline& pipeline, #ifdef SK_DEBUG SkASSERT(!primProc.hasInstanceAttribs() || this->gpu()->caps()->instanceAttribSupport()); for (int i = 0; i < meshCount; ++i) { + SkASSERT(GrPrimitiveType::kLinesAdjacency != meshes[i].primitiveType() || + this->gpu()->caps()->shaderCaps()->geometryShaderSupport()); SkASSERT(primProc.hasVertexAttribs() == meshes[i].hasVertexData()); SkASSERT(primProc.hasInstanceAttribs() == meshes[i].isInstanced()); } -- cgit v1.2.3