diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-06-12 20:44:08 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-13 14:25:21 +0000 |
commit | f7eb015083aba8942031145736251dd32094115d (patch) | |
tree | 97ed397a5e8189b8c3600842c9be1ce1d46ab5ba /src/gpu/GrGpuCommandBuffer.cpp | |
parent | e93cf97175d348ce1400762bdd8d9acabdd29766 (diff) |
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 <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.cpp')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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()); } |