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

Issue 6101043: First pass at refactoring flatted dictionaries. (Closed)

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

Description

Refactor dictionaries for use by entities other than just SkPicture Committed: https://code.google.com/p/skia/source/detail?r=4077

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -462 lines) Patch
M include/core/SkOrderedWriteBuffer.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 7 2 chunks +150 lines, -67 lines 0 comments Download
M src/core/SkPictureFlat.cpp View 1 2 3 4 5 6 7 2 chunks +47 lines, -209 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 4 chunks +10 lines, -54 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 3 chunks +9 lines, -19 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 6 chunks +11 lines, -85 lines 0 comments Download
M src/effects/Sk2DPathEffect.cpp View 1 2 3 1 chunk +2 lines, -9 lines 0 comments Download
M src/effects/SkGroupShape.cpp View 1 2 3 2 chunks +5 lines, -11 lines 0 comments Download
M tests/CanvasTest.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 10
DerekS
13 years, 1 month ago (2012-04-30 19:39:31 UTC) #1
Leon
https://codereview.appspot.com/6101043/diff/5022/include/core/SkRegion.h File include/core/SkRegion.h (right): https://codereview.appspot.com/6101043/diff/5022/include/core/SkRegion.h#newcode360 include/core/SkRegion.h:360: uint32_t unflatten32(SkReader32*); Should this parameter be const SkReader32* ? ...
13 years, 1 month ago (2012-04-30 20:29:45 UTC) #2
DerekS
https://codereview.appspot.com/6101043/diff/5022/include/core/SkRegion.h File include/core/SkRegion.h (right): https://codereview.appspot.com/6101043/diff/5022/include/core/SkRegion.h#newcode360 include/core/SkRegion.h:360: uint32_t unflatten32(SkReader32*); While the reader's buffer is const the ...
13 years, 1 month ago (2012-04-30 20:38:53 UTC) #3
Leon
https://codereview.appspot.com/6101043/diff/5022/include/core/SkRegion.h File include/core/SkRegion.h (right): https://codereview.appspot.com/6101043/diff/5022/include/core/SkRegion.h#newcode360 include/core/SkRegion.h:360: uint32_t unflatten32(SkReader32*); Ah yes. Nvm. https://codereview.appspot.com/6101043/diff/5022/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): ...
13 years, 1 month ago (2012-04-30 20:46:37 UTC) #4
Leon
LGTM
13 years, 1 month ago (2012-05-01 17:35:16 UTC) #5
reed1
I like the code sharing. Do we have sufficient benches for recording pictures to know ...
13 years, 1 month ago (2012-05-07 20:45:25 UTC) #6
junov1
https://codereview.appspot.com/6101043/diff/14001/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): https://codereview.appspot.com/6101043/diff/14001/src/core/SkPictureFlat.h#newcode229 src/core/SkPictureFlat.h:229: void reset() { fData.reset(); fNextIndex = 1; } Don't ...
13 years, 1 month ago (2012-05-07 21:06:28 UTC) #7
DerekS
https://codereview.appspot.com/6101043/diff/14001/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (left): https://codereview.appspot.com/6101043/diff/14001/src/core/SkPictureFlat.h#oldcode144 src/core/SkPictureFlat.h:144: On 2012/05/07 20:45:25, reed1 wrote: > Should these 2 ...
13 years, 1 month ago (2012-05-08 13:11:18 UTC) #8
reed1
Seems good. I'd like to see a bench before we commit this.
13 years, 1 month ago (2012-05-08 15:35:34 UTC) #9
DerekS
13 years ago (2012-05-30 16:01:17 UTC) #10
I've tested this CL with the following bench and the results 
show that the new CL is slightly faster at around 11.75ms on average compared to
the old version which was 12.5ms.

So in the end we not only cleaned up the code during the refactoring we also
made is slightly faster.

http://codereview.appspot.com/6258062/
Sign in to reply to this message.

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