Store vertex size in DrawState when setVertexAttribs is called
authoregdaniel <egdaniel@google.com>
Fri, 22 Aug 2014 14:19:35 +0000 (07:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 22 Aug 2014 14:19:35 +0000 (07:19 -0700)
commitab78e06830cb70410b0e9e4f96575e137867e89f
tree96282cb9b995dcef2c9c40a34ef14fdf44cd4ab4
parent6f1cd27536fcaaef8818bb87785ed3a56a8033d6
Store vertex size in DrawState when setVertexAttribs is called

This will avoid recalculating vertex size throughout code, and will allow
for a set original vertex size once optimizations start removing VA's

BUG=skia:
R=bsalomon@google.com

Author: egdaniel@google.com

Review URL: https://codereview.chromium.org/498483002
src/gpu/GrDrawState.cpp
src/gpu/GrDrawState.h