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

Issue 5959047: Don't look at current vertex layout when vertex source hasn't been set (Closed)

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

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : cleanup #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -47 lines) Patch
M src/gpu/GrContext.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 5 chunks +36 lines, -19 lines 6 comments Download
M src/gpu/GrDrawTarget.cpp View 1 4 chunks +9 lines, -10 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 1 chunk +1 line, -1 line 2 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGpuGLShaders.cpp View 7 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 5
bsalomon
We have some canDoSuchAndSuch() helper functions on GrDrawTarget that consider the capabilities of the the ...
12 years, 8 months ago (2012-03-29 18:24:48 UTC) #1
TomH
On 2012/03/29 18:24:48, bsalomon wrote: > This change makes getBlendOpts assume that all stages that ...
12 years, 8 months ago (2012-03-29 18:30:28 UTC) #2
bsalomon
On 2012/03/29 18:30:28, TomH wrote: > On 2012/03/29 18:24:48, bsalomon wrote: > > This change ...
12 years, 8 months ago (2012-03-29 18:41:34 UTC) #3
TomH
LGTM. http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (left): http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h#oldcode126 src/gpu/GrDrawTarget.h:126: bool drawWillReadDst() const; Doesn't it still make sense ...
12 years, 8 months ago (2012-03-29 18:43:12 UTC) #4
bsalomon
12 years, 8 months ago (2012-03-29 20:31:13 UTC) #5
Closed with r3545.

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h
File src/gpu/GrDrawTarget.h (left):

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h#oldcod...
src/gpu/GrDrawTarget.h:126: bool drawWillReadDst() const;
On 2012/03/29 18:43:12, TomH wrote:
> Doesn't it still make sense to encapsulate the logic behind this decision? Or
> was it too often wrong?

There were no longer any callers.

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h
File src/gpu/GrDrawTarget.h (right):

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h#newcod...
src/gpu/GrDrawTarget.h:134: *    3. If a vertex source has not yet been
specified then any stages with
On 2012/03/29 18:43:12, TomH wrote:
> nit: "all" is probably more explicit than "any"
> tangent: now I want to document a project in 18th century dialect

Done. (x3)

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrDrawTarget.h#newcod...
src/gpu/GrDrawTarget.h:999: }
On 2012/03/29 18:43:12, TomH wrote:
> Couldn't this (and StagePosAs...) be a static helper somewhere not listed in a
> header? I see this not being used elsewhere, although perhaps StagePosAs...()
> is.

Good point. I'll move this to the cpp. StagePosAs... is used by GrDrawTarget
clients to create their vertex layouts and thus must remain int he header.

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrGpu.cpp
File src/gpu/GrGpu.cpp (right):

http://codereview.appspot.com/5959047/diff/4001/src/gpu/GrGpu.cpp#newcode914
src/gpu/GrGpu.cpp:914: fVertexPool->appendVertices(this->getVertexLayout,
On 2012/03/29 18:43:12, TomH wrote:
> Doesn't this need ()?

Done. (upload.pyed too early)
Sign in to reply to this message.

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