Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(20)

Issue 7359045: Refactor tracking of bound vbufs and ibufs and vertex attrib arrays. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by bsalomon
Modified:
11 years, 4 months ago
Reviewers:
JimVV, robertphillips
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Refactor tracking of bound vbufs and ibufs and vertex attrib arrays. Committed: https://code.google.com/p/skia/source/detail?r=7779

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -236 lines) Patch
M src/gpu/gl/GrGLIndexBuffer.h View 1 2 2 chunks +10 lines, -9 lines 0 comments Download
M src/gpu/gl/GrGLIndexBuffer.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 chunk +7 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLVertexBuffer.h View 1 2 1 chunk +11 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGLVertexBuffer.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 5 chunks +151 lines, -28 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 9 chunks +89 lines, -84 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 chunk +67 lines, -85 lines 0 comments Download

Messages

Total messages: 5
bsalomon
This adds a class that tracks bound VBOs and attrib array state. It's more generic ...
11 years, 4 months ago (2013-02-19 19:09:14 UTC) #1
robertphillips
LGTM + nit & question https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGpuGL.cpp File src/gpu/gl/GrGpuGL.cpp (right): https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGpuGL.cpp#newcode2332 src/gpu/gl/GrGpuGL.cpp:2332: GrAssert(!vbuf->isLocked()); Could baseOffset return ...
11 years, 4 months ago (2013-02-19 19:54:42 UTC) #2
bsalomon
https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGpuGL.cpp File src/gpu/gl/GrGpuGL.cpp (right): https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGpuGL.cpp#newcode2332 src/gpu/gl/GrGpuGL.cpp:2332: GrAssert(!vbuf->isLocked()); On 2013/02/19 19:54:42, robertphillips wrote: > Could baseOffset ...
11 years, 4 months ago (2013-02-19 19:59:08 UTC) #3
JimVV
LGTM + an FYI https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGLProgram.h File src/gpu/gl/GrGLProgram.h (right): https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGLProgram.h#newcode84 src/gpu/gl/GrGLProgram.h:84: enum { My plan is ...
11 years, 4 months ago (2013-02-19 20:15:06 UTC) #4
bsalomon
11 years, 4 months ago (2013-02-19 20:17:28 UTC) #5
https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGLProgram.h
File src/gpu/gl/GrGLProgram.h (right):

https://codereview.appspot.com/7359045/diff/2001/src/gpu/gl/GrGLProgram.h#new...
src/gpu/gl/GrGLProgram.h:84: enum {
On 2013/02/19 20:15:06, JimVV wrote:
> My plan is to replace these by the index of the corresponding attribute in the
> currently active vertex attribute array. So they may become functions again.

Ok. Hopefully all but kPosition and kTexCoord (or their function equivalents)
can eventually be eliminated.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b