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

Issue 7308094: Remove unused texture coordinate flags (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by JimVV
Modified:
13 years, 1 month ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Remove unused texture coordinate flags. Currently we support 5 texture stages, each with 5 possible texture coordinate attributes. However, we only ever use one explicit texture coordinate. This change removes all but one (now named just "aTexCoord") of the possible explicit texture coordinates.

Patch Set 1 #

Total comments: 27

Patch Set 2 : Changes for code review requests #

Total comments: 4

Patch Set 3 : More small cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -433 lines) Patch
M src/gpu/GrContext.cpp View 1 4 chunks +11 lines, -16 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 6 chunks +20 lines, -53 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 1 2 9 chunks +103 lines, -248 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 1 chunk +17 lines, -16 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 chunks +10 lines, -15 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 4 chunks +11 lines, -16 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 7 chunks +10 lines, -33 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 2 chunks +22 lines, -24 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 11
JimVV
13 years, 1 month ago (2013-02-12 21:06:48 UTC) #1
bsalomon
It's awesome to see some of this complexity go away. https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp#newcode99 ...
13 years, 1 month ago (2013-02-12 21:24:11 UTC) #2
robertphillips
LGTM + questions/suggestions https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp#newcode77 src/gpu/GrDrawState.cpp:77: Shouldn't this be turned off? https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp#newcode108 ...
13 years, 1 month ago (2013-02-12 21:24:14 UTC) #3
JimVV
https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp#newcode109 src/gpu/GrDrawState.cpp:109: int num_tex_coords(GrVertexLayout layout) { Having it act like it's ...
13 years, 1 month ago (2013-02-12 21:28:37 UTC) #4
bsalomon
https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp#newcode109 src/gpu/GrDrawState.cpp:109: int num_tex_coords(GrVertexLayout layout) { On 2013/02/12 21:28:38, JimVV wrote: ...
13 years, 1 month ago (2013-02-12 21:29:16 UTC) #5
JimVV
https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.cpp#newcode77 src/gpu/GrDrawState.cpp:77: On 2013/02/12 21:24:14, robertphillips wrote: > Shouldn't this be ...
13 years, 1 month ago (2013-02-13 19:17:25 UTC) #6
TomH
On 2013/02/12 21:24:11, bsalomon wrote: > It's awesome to see some of this complexity go ...
13 years, 1 month ago (2013-02-13 19:19:13 UTC) #7
bsalomon
https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.appspot.com/7308094/diff/1/src/gpu/GrDrawState.h#newcode144 src/gpu/GrDrawState.h:144: static const int STAGE_BIT_CNT = kNumStages; On 2013/02/13 19:17:25, ...
13 years, 1 month ago (2013-02-13 19:38:35 UTC) #8
JimVV
https://codereview.appspot.com/7308094/diff/8001/src/gpu/GrDrawState.cpp File src/gpu/GrDrawState.cpp (right): https://codereview.appspot.com/7308094/diff/8001/src/gpu/GrDrawState.cpp#newcode86 src/gpu/GrDrawState.cpp:86: const GrVertexLayout gTexCoordMask = 0x1f; On 2013/02/13 19:38:35, bsalomon ...
13 years, 1 month ago (2013-02-13 22:16:56 UTC) #9
bsalomon
On 2013/02/13 22:16:56, JimVV wrote: > https://codereview.appspot.com/7308094/diff/8001/src/gpu/GrDrawState.cpp > File src/gpu/GrDrawState.cpp (right): > > https://codereview.appspot.com/7308094/diff/8001/src/gpu/GrDrawState.cpp#newcode86 > ...
13 years, 1 month ago (2013-02-14 00:31:31 UTC) #10
JimVV
13 years, 1 month ago (2013-02-14 15:26:53 UTC) #11
Message was sent while issue was closed.
Committed as r7737.
Sign in to reply to this message.

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