diff options
author | 2018-06-18 12:52:47 -0400 | |
---|---|---|
committer | 2018-06-18 17:13:58 +0000 | |
commit | 19c1233c447f625c2522e7ecd0a0adecc629bb2f (patch) | |
tree | 891e06143986ade3aae8d4176ec8b426f70b896f /src/gpu/GrPathProcessor.h | |
parent | 146cf3ce7935019ecc63ce9e93450a8c122880d8 (diff) |
Change how vertex/instance attributes are handled in geometry processors.
* No longer register vertex/instance attributes on base class, just counts
* Separate instance and vertex attributes and remove InputRate and offset
* Make attributes constexpr where possible
Change-Id: I1f1d5e772fa177a96d2aeb805aab7b69f35bfae6
Reviewed-on: https://skia-review.googlesource.com/132405
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrPathProcessor.h')
-rw-r--r-- | src/gpu/GrPathProcessor.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpu/GrPathProcessor.h b/src/gpu/GrPathProcessor.h index 72e5168a4f..6893e882dc 100644 --- a/src/gpu/GrPathProcessor.h +++ b/src/gpu/GrPathProcessor.h @@ -38,6 +38,18 @@ public: virtual bool isPathRendering() const override { return true; } private: + const Attribute& onVertexAttribute(int i) const final { + SK_ABORT("No vertex attributes"); + static constexpr Attribute kBogus; + return kBogus; + } + + const Attribute& onInstanceAttribute(int i) const final { + SK_ABORT("No instanced attributes"); + static constexpr Attribute kBogus; + return kBogus; + } + GrPathProcessor(GrColor, const SkMatrix& viewMatrix, const SkMatrix& localMatrix); GrColor fColor; |