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

Issue 5938043: Make fewer copies when using GrDrawTarget::AutoStateRestore (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.

Patch Set 1 #

Patch Set 2 : Remove doubly-applied patch lines #

Patch Set 3 : whitespace cleanup #

Patch Set 4 : fix endif #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -117 lines) Patch
M src/gpu/GrAAConvexPathRenderer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 chunk +7 lines, -3 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 7 chunks +11 lines, -15 lines 0 comments Download
M src/gpu/GrDefaultPathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 3 chunks +44 lines, -53 lines 6 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 2 chunks +20 lines, -27 lines 0 comments Download
M src/gpu/GrGpu.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 4 chunks +5 lines, -8 lines 0 comments Download
M src/gpu/GrTesselatedPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
bsalomon
GrDrawTarget::AutoStateRestore currently saves a copy of the GrDrawState in its cons or set and then ...
12 years, 3 months ago (2012-03-27 17:58:03 UTC) #1
bsalomon
This is the last piece of the GrDrawState changes I've been spinning out from the ...
12 years, 3 months ago (2012-03-27 17:59:07 UTC) #2
TomH
LGTM modulo nits. http://codereview.appspot.com/5938043/diff/5001/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): http://codereview.appspot.com/5938043/diff/5001/src/gpu/GrDrawTarget.h#newcode563 src/gpu/GrDrawTarget.h:563: * // call to to drawState ...
12 years, 3 months ago (2012-03-28 01:43:25 UTC) #3
bsalomon
12 years, 3 months ago (2012-03-30 15:56:48 UTC) #4
Closed with r3557

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

http://codereview.appspot.com/5938043/diff/5001/src/gpu/GrDrawTarget.h#newcod...
src/gpu/GrDrawTarget.h:563: *                             // call to to
drawState below asr's cons.
On 2012/03/28 01:43:26, TomH wrote:
> I don't understand the point of the BUG comment-within-a-comment, or really
what
> this example code is for.

clarified in checked in version

http://codereview.appspot.com/5938043/diff/5001/src/gpu/GrDrawTarget.h#newcod...
src/gpu/GrDrawTarget.h:574: * is destroyed. If this cons is used do not call
set().
On 2012/03/28 01:43:26, TomH wrote:
> Could we spell out constructor here & below? Abbreviation in the internal
> comments in other files isn't so bad...

Done.

http://codereview.appspot.com/5938043/diff/5001/src/gpu/GrDrawTarget.h#newcod...
src/gpu/GrDrawTarget.h:577: *              previous state or a
default-initialized GrDrawState.
On 2012/03/28 01:43:26, TomH wrote:
> I'm not sure Preserve|Reset conveys this well / this describes those well.

Ignored this for now due to lack of better ideas :)
Sign in to reply to this message.

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