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

Issue 7235051: Move vertex layout definitions from GrDrawTarget to GrDrawState (Closed)

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

Description

Move vertex layout definitions from GrDrawTarget to GrDrawState. This is the first step in revising vertex layouts so that the currently installed GrEffects determine the current vertex layout. Eventually GrDrawStage will query or track the current GrEffects and adjust the layout accordingly, so GrDrawStage needs ownership of GrVertexLayout.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+810 lines, -802 lines) Patch
M experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrBufferAllocPool.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrContext.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/GrDrawState.h View 2 chunks +265 lines, -1 line 1 comment Download
M src/gpu/GrDrawState.cpp View 2 chunks +485 lines, -0 lines 1 comment Download
M src/gpu/GrDrawTarget.h View 4 chunks +0 lines, -259 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 9 chunks +7 lines, -489 lines 1 comment Download
M src/gpu/GrGpu.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 8 chunks +9 lines, -9 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 10 chunks +12 lines, -12 lines 0 comments Download
M src/gpu/gr_unittests.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/GLProgramsTest.cpp View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 4
JimVV
11 years, 10 months ago (2013-01-28 16:44:57 UTC) #1
bsalomon
On 2013/01/28 16:44:57, JimVV wrote: LGTM. I'll be so so happy when we can remove ...
11 years, 10 months ago (2013-01-28 17:08:20 UTC) #2
bsalomon
https://codereview.appspot.com/7235051/diff/1/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.appspot.com/7235051/diff/1/src/gpu/GrDrawTarget.cpp#newcode633 src/gpu/GrDrawTarget.cpp:633: &colorOffset, NULL, NULL); nit: can we align the params?
11 years, 10 months ago (2013-01-28 17:08:30 UTC) #3
robertphillips
11 years, 10 months ago (2013-01-28 19:05:54 UTC) #4
LGTM + nits

https://codereview.appspot.com/7235051/diff/1/src/gpu/GrDrawState.cpp
File src/gpu/GrDrawState.cpp (right):

https://codereview.appspot.com/7235051/diff/1/src/gpu/GrDrawState.cpp#newcode55
src/gpu/GrDrawState.cpp:55: * time. When the number of stages or tex coords is
bumped or the way bits
GrDrawState.h

https://codereview.appspot.com/7235051/diff/1/src/gpu/GrDrawState.h
File src/gpu/GrDrawState.h (right):

https://codereview.appspot.com/7235051/diff/1/src/gpu/GrDrawState.h#newcode20
src/gpu/GrDrawState.h:20: 
Why not alphabetical order with SkMatrix.h?
Sign in to reply to this message.

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