diff options
author | joshualitt <joshualitt@chromium.org> | 2014-11-18 14:24:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-18 14:24:27 -0800 |
commit | 7eb8c7b00a5d776bebaf33a8687357df95c1aa43 (patch) | |
tree | eede33f3188a76b505c13c3b56a2409856d9861d /src/gpu/gl | |
parent | 914dd53a4272f6928a8380c24f6e30666ed6c0d2 (diff) |
drawinfo carries bufferinfo
BUG=skia:
Review URL: https://codereview.chromium.org/737723003
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGpuGL_program.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp index 68f38df9f0..cfea2c508c 100644 --- a/src/gpu/gl/GrGpuGL_program.cpp +++ b/src/gpu/gl/GrGpuGL_program.cpp @@ -264,7 +264,7 @@ void GrGpuGL::setupGeometry(const GrOptDrawState& optState, size_t vertexOffsetInBytes = stride * info.startVertex(); GrGLVertexBuffer* vbuf; - vbuf = (GrGLVertexBuffer*) this->getGeomSrc().fVertexBuffer; + vbuf = (GrGLVertexBuffer*) info.vertexBuffer(); SkASSERT(vbuf); SkASSERT(!vbuf->isMapped()); @@ -275,7 +275,7 @@ void GrGpuGL::setupGeometry(const GrOptDrawState& optState, SkASSERT(indexOffsetInBytes); *indexOffsetInBytes = 0; - ibuf = (GrGLIndexBuffer*)this->getGeomSrc().fIndexBuffer; + ibuf = (GrGLIndexBuffer*)info.indexBuffer(); SkASSERT(ibuf); SkASSERT(!ibuf->isMapped()); |