diff options
author | 2018-06-08 18:05:20 -0400 | |
---|---|---|
committer | 2018-06-08 22:32:02 +0000 | |
commit | 802cb318f695d5c3ade20b6424c97ea548a929b2 (patch) | |
tree | 964cb86d42d1d3e0e2ffb970364622b902733a44 /include | |
parent | 65b7bfcf61c5d925bf0066a2b40dd6ef7cf82595 (diff) |
Stop passing GrPrimitiveProcessor to GrMesh::sendToGpu.
It is currently used in GrGLGpu::setupGeometry. Instead:
1) Make GrMesh track whether primitive restart should be enabled.
2) Make GrGLProgram track program attributes.
Change-Id: Ice411a495961fcbc3cedc81e8ae0583537f42153
Reviewed-on: https://skia-review.googlesource.com/132267
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/private/GrTypesPriv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/private/GrTypesPriv.h b/include/private/GrTypesPriv.h index 84461836f0..71871a0020 100644 --- a/include/private/GrTypesPriv.h +++ b/include/private/GrTypesPriv.h @@ -100,6 +100,11 @@ static constexpr bool GrPrimTypeRequiresGeometryShaderSupport(GrPrimitiveType ty return GrPrimitiveType::kLinesAdjacency == type; } +enum class GrPrimitiveRestart : bool { + kNo = false, + kYes = true +}; + /** * Formats for masks, used by the font cache. Important that these are 0-based. */ |