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

Issue 6337050: Default to using position for texture coordinates (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by TomH
Modified:
12 years, 5 months ago
Reviewers:
bsalomon
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Not nearly as bad as it looked, once I poked it. There's a little more cleanup that *could* be done, but this is the bulk of it.

Patch Set 1 #

Total comments: 21

Patch Set 2 : Respond to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -141 lines) Patch
M src/gpu/GrAAConvexPathRenderer.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 1 chunk +0 lines, -6 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 1 1 chunk +0 lines, -6 lines 0 comments Download
M src/gpu/GrDefaultTextContext.cpp View 1 1 chunk +0 lines, -11 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 4 chunks +7 lines, -48 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 15 chunks +18 lines, -37 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 chunks +7 lines, -11 lines 0 comments Download
M src/gpu/gl/GrGpuGL_unittest.cpp View 1 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 7
TomH
12 years, 5 months ago (2012-06-22 21:50:25 UTC) #1
bsalomon
Great, I'm surprised pulling this thread didn't unravel a whole lot more of the sweater. ...
12 years, 5 months ago (2012-06-23 00:54:14 UTC) #2
TomH
http://codereview.appspot.com/6337050/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): http://codereview.appspot.com/6337050/diff/1/src/gpu/GrContext.cpp#newcode1575 src/gpu/GrContext.cpp:1575: GrVertexLayout layout = 0; On 2012/06/23 00:54:14, bsalomon wrote: ...
12 years, 5 months ago (2012-06-25 14:53:11 UTC) #3
bsalomon
LGTM http://codereview.appspot.com/6337050/diff/1/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (left): http://codereview.appspot.com/6337050/diff/1/src/gpu/GrDrawTarget.cpp#oldcode891 src/gpu/GrDrawTarget.cpp:891: GrVertexLayout default_blend_opts_vertex_layout() { On 2012/06/25 14:53:11, TomH wrote: ...
12 years, 5 months ago (2012-06-25 15:14:58 UTC) #4
TomH
Closed with r4321.
12 years, 5 months ago (2012-06-25 15:22:27 UTC) #5
TomH
On 2012/06/25 15:14:58, bsalomon wrote: > http://codereview.appspot.com/6337050/diff/1/src/gpu/GrDrawTarget.h > File src/gpu/GrDrawTarget.h (right): > > http://codereview.appspot.com/6337050/diff/1/src/gpu/GrDrawTarget.h#newcode988 > ...
12 years, 5 months ago (2012-06-25 15:31:30 UTC) #6
bsalomon
12 years, 5 months ago (2012-06-25 15:34:59 UTC) #7
On 2012/06/25 15:31:30, TomH wrote:
> On 2012/06/25 15:14:58, bsalomon wrote:
> > http://codereview.appspot.com/6337050/diff/1/src/gpu/GrDrawTarget.h
> > File src/gpu/GrDrawTarget.h (right):
> > 
> >
http://codereview.appspot.com/6337050/diff/1/src/gpu/GrDrawTarget.h#newcode988
> > src/gpu/GrDrawTarget.h:988: return NULL != state.getTexture(stage);
> > On 2012/06/25 14:53:11, TomH wrote:
> > > On 2012/06/23 00:54:14, bsalomon wrote:
> > > > Should we remove the layout param, or wait till a future CL?
> > > 
> > > Done.
> > 
> > Great, I suppose once you change the def of enabled stage in GrDrawState
then
> we
> > can kill this function and isStageEnabled().
> 
> I started doing that in 6306097, but leaving isStageEnabled() there gives us a
> little bit of control of coupling: GrGpuGL doesn't need to explicitly get the
> draw state and call stageActive() on it.
> 
> Apparently the orthodoxy on controlling coupling is to not access the
interface
> of a class several-pointer-references away, but that's a rule of thumb I've
> never been completely happy with.

I suppose we could have an inline helper that just forwards the query on to the
current GrDrawState. It would be nice to get rid of the static function, though.
Sign in to reply to this message.

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