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

Issue 5848064: Add GrDrawTarget::drawIndexedInstances (Closed)

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

Description

This allows small text draws to be concatenated. It also may help some types of path rendering, though that hasn't been hooked up in this change.

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : update #

Patch Set 4 : comment update #

Patch Set 5 : comment update #

Total comments: 24

Patch Set 6 : fix plural #

Total comments: 2

Patch Set 7 : address comments #

Patch Set 8 : address comments #

Patch Set 9 : address comments #

Patch Set 10 : address comments #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -25 lines) Patch
M src/gpu/GrDefaultTextContext.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 5 6 8 chunks +59 lines, -11 lines 2 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 1 comment Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 6 7 4 chunks +25 lines, -7 lines 2 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 5 6 7 8 9 8 chunks +137 lines, -3 lines 2 comments Download

Messages

Total messages: 5
bsalomon
GrDrawTarget.h is the place to start with this CL.
12 years, 3 months ago (2012-03-20 15:21:07 UTC) #1
TomH
http://codereview.appspot.com/5848064/diff/6011/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): http://codereview.appspot.com/5848064/diff/6011/src/gpu/GrDrawTarget.h#newcode266 src/gpu/GrDrawTarget.h:266: * specified it can be used for multiple draw. ...
12 years, 3 months ago (2012-03-20 15:58:32 UTC) #2
bsalomon
http://codereview.appspot.com/5848064/diff/6011/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): http://codereview.appspot.com/5848064/diff/6011/src/gpu/GrDrawTarget.h#newcode510 src/gpu/GrDrawTarget.h:510: * (k+1)V-1. As a concrete example, the folliwng index ...
12 years, 3 months ago (2012-03-20 19:02:29 UTC) #3
TomH
LGTM http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrDrawTarget.cpp#newcode1025 src/gpu/GrDrawTarget.cpp:1025: indicesPerInstance; Nice how this resolved so cleanly. http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrDrawTarget.h ...
12 years, 3 months ago (2012-03-20 20:39:53 UTC) #4
bsalomon
12 years, 3 months ago (2012-03-20 21:19:08 UTC) #5
Closed with r3444.

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

http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrDrawTarget.h#newcod...
src/gpu/GrDrawTarget.h:521: * the calls.
On 2012/03/20 20:39:53, TomH wrote:
> If we can do it concisely, this paragraph really needs more concrete examples
> like the one above. I'm not confident that I understand sentences 2-3 yet.

I took one more stab at it in the checked in version.

http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrInOrderDrawBuffer.cpp
File src/gpu/GrInOrderDrawBuffer.cpp (right):

http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrInOrderDrawBuffer.c...
src/gpu/GrInOrderDrawBuffer.cpp:218: kBuffer_GeometrySrcType ==
geomSrc.fIndexSrc) {
On 2012/03/20 20:39:53, TomH wrote:
> Change from before, right? Was this a bug? Or just because of new semantics w/
> using index source & vertex source?

Just because of the new semantics. The code below only works correctly when the
index source is buffer. It probably could be made to work generally but I'd
rather cross that bridge when we get there.

http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrInOrderDrawBuffer.h
File src/gpu/GrInOrderDrawBuffer.h (right):

http://codereview.appspot.com/5848064/diff/8003/src/gpu/GrInOrderDrawBuffer.h...
src/gpu/GrInOrderDrawBuffer.h:216: fIndicesPerInstance= 0;
On 2012/03/20 20:39:53, TomH wrote:
> nit: space before =

Done.
Sign in to reply to this message.

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