aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRODrawState.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-08-27 12:17:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-27 12:17:24 -0700
commitaf013bf8afc4c77ab8ff230f536e2ade973427fa (patch)
tree1b10644cf38a3fd9a5a4d2acdcd7c3252d41daa0 /src/gpu/GrRODrawState.cpp
parentd72094d1c1062a9daa6fa92682ef29f02ba59335 (diff)
Make setVertexAttribs in GrDrawState take a stride parameter.
BUG=skia: R=bsalomon@google.com Author: egdaniel@google.com Review URL: https://codereview.chromium.org/511593004
Diffstat (limited to 'src/gpu/GrRODrawState.cpp')
-rw-r--r--src/gpu/GrRODrawState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrRODrawState.cpp b/src/gpu/GrRODrawState.cpp
index 1460f57320..9118d0dc8d 100644
--- a/src/gpu/GrRODrawState.cpp
+++ b/src/gpu/GrRODrawState.cpp
@@ -25,6 +25,7 @@ bool GrRODrawState::isEqual(const GrRODrawState& that) const {
this->fBlendConstant != that.fBlendConstant ||
this->fFlagBits != that.fFlagBits ||
this->fVACount != that.fVACount ||
+ this->fVAStride != that.fVAStride ||
memcmp(this->fVAPtr, that.fVAPtr, this->fVACount * sizeof(GrVertexAttrib)) ||
this->fStencilSettings != that.fStencilSettings ||
this->fDrawFace != that.fDrawFace) {
@@ -50,7 +51,6 @@ bool GrRODrawState::isEqual(const GrRODrawState& that) const {
}
}
- SkASSERT(this->fVertexSize == that.fVertexSize);
SkASSERT(0 == memcmp(this->fFixedFunctionVertexAttribIndices,
that.fFixedFunctionVertexAttribIndices,
sizeof(this->fFixedFunctionVertexAttribIndices)));