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

Issue 6443149: peephole optimize save/restore brackets that contain no draw calls. (Closed)

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

Description

peephole optimize save/restore brackets that contain no draw calls. Committed: https://code.google.com/p/skia/source/detail?r=5347

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -12 lines) Patch
M src/core/SkPictureFlat.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 4 chunks +115 lines, -10 lines 0 comments Download

Messages

Total messages: 4
reed1
Could be two sequential CLs 1. add rewind api to SkWriter32 2. use that to ...
12 years, 2 months ago (2012-08-17 18:09:09 UTC) #1
robertphillips
LGTM + 1 nit. https://codereview.appspot.com/6443149/diff/2001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.appspot.com/6443149/diff/2001/src/core/SkPictureRecord.cpp#newcode143 src/core/SkPictureRecord.cpp:143: collaps -> collapse everywhere?
12 years, 2 months ago (2012-08-28 17:09:24 UTC) #2
Leon
https://codereview.appspot.com/6443149/diff/2001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.appspot.com/6443149/diff/2001/src/core/SkPictureRecord.cpp#newcode60 src/core/SkPictureRecord.cpp:60: fRestoreOffsetStack.push(-(int32_t)fWriter.size()); What happens if save is the first draw ...
12 years, 2 months ago (2012-08-28 17:10:38 UTC) #3
reed1
12 years, 2 months ago (2012-08-28 20:07:46 UTC) #4
https://codereview.appspot.com/6443149/diff/2001/src/core/SkPictureRecord.cpp
File src/core/SkPictureRecord.cpp (right):

https://codereview.appspot.com/6443149/diff/2001/src/core/SkPictureRecord.cpp...
src/core/SkPictureRecord.cpp:60:
fRestoreOffsetStack.push(-(int32_t)fWriter.size());
On 2012/08/28 17:10:38, scroggo-work wrote:
> What happens if save is the first draw command recorded? Will we still
recognize
> this as a save rather than a clip entry?

We just have to be non-positive. I have updated the comment to that effect.
Sign in to reply to this message.

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