diff options
author | Brian Salomon <bsalomon@google.com> | 2018-01-11 11:46:21 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-11 19:37:51 +0000 |
commit | b5ef1f9b13e36a427dd6350986d41db208b2df1b (patch) | |
tree | f3feab5dbea98e9daa160230eff92b63c56e4475 /src/gpu/GrPrimitiveProcessor.h | |
parent | ac47b88d3c4b6232ea8664cea99fbd8394f2dc38 (diff) |
Make GrTextureOp capable of edge antialiasing.
Bug: skia:
Change-Id: I0088bdbb6a76811611fa4628656bf9513c5bf04a
Reviewed-on: https://skia-review.googlesource.com/91105
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPrimitiveProcessor.h')
-rw-r--r-- | src/gpu/GrPrimitiveProcessor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h index f480110df5..22c65fa249 100644 --- a/src/gpu/GrPrimitiveProcessor.h +++ b/src/gpu/GrPrimitiveProcessor.h @@ -49,7 +49,11 @@ public: return GrShaderVar(fName, GrVertexAttribTypeToSLType(fType), GrShaderVar::kIn_TypeModifier); } - const char* fName; + bool isInitialized() const { return SkToBool(fName); } + Attribute() = default; + Attribute(const char* name, GrVertexAttribType type, int offset, InputRate rate) + : fName(name), fType(type), fOffsetInRecord(offset), fInputRate(rate) {} + const char* fName = nullptr; GrVertexAttribType fType; int fOffsetInRecord; InputRate fInputRate; |