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

Issue 6345102: Use SkFlatDictionary in SkGPipe to take advantage of its new features. (Closed)

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

Description

Use SkFlatDictionary in SkGPipe to take advantage of its new features. Add a controller class to perform the allocation/unallocation for the dictionary and to provide an entry to be replaced, if replacements are allowed. TODO: Use LRU caching in my custom controller so replacements will be done less often. More refactoring on SkFlatDictionary so picture recording's use of the dictionary does not require going through the path to replace. Committed: https://code.google.com/p/skia/source/detail?r=4639

Patch Set 1 #

Total comments: 1

Patch Set 2 : Merged with new changes. #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 8

Patch Set 5 : Use SkFlatDictionary in SkGPipe to take advantage of its new features.\n\nProvide a controller clas… #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -207 lines) Patch
M src/core/SkPictureFlat.h View 1 2 3 4 5 10 chunks +171 lines, -48 lines 0 comments Download
M src/core/SkPictureFlat.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 2 3 4 5 6 1 chunk +9 lines, -4 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 5 6 15 chunks +143 lines, -142 lines 0 comments Download

Messages

Total messages: 15
Leon
https://codereview.appspot.com/6345102/diff/1/tools/bench_pictures_main.cpp File tools/bench_pictures_main.cpp (right): https://codereview.appspot.com/6345102/diff/1/tools/bench_pictures_main.cpp#newcode144 tools/bench_pictures_main.cpp:144: printf("%i_tiles_%ix%i: cmsecs = %6.2f\n", tiles.count(), options.fTileWidth, This wasn't actually ...
11 years, 11 months ago (2012-07-12 18:02:02 UTC) #1
Leon
11 years, 11 months ago (2012-07-12 20:49:12 UTC) #2
reed1
still complex, but maybe that's unavoidable. What are bench results for this change (-match picture_record)? ...
11 years, 11 months ago (2012-07-13 18:09:34 UTC) #3
Leon
Re: complexity I'll think about it some more... Re: timing The picture_record tests took around ...
11 years, 11 months ago (2012-07-13 21:04:22 UTC) #4
Leon
11 years, 11 months ago (2012-07-16 13:49:01 UTC) #5
reed1
Might add a small todo list in the CL, so we can see some of ...
11 years, 11 months ago (2012-07-16 13:51:13 UTC) #6
reed1
11 years, 11 months ago (2012-07-16 13:51:18 UTC) #7
Leon
https://codereview.appspot.com/6345102/diff/12001/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): https://codereview.appspot.com/6345102/diff/12001/src/core/SkPictureFlat.h#newcode164 src/core/SkPictureFlat.h:164: public: On 2012/07/16 13:51:13, reed1 wrote: > For the ...
11 years, 11 months ago (2012-07-16 15:27:06 UTC) #8
reed1
lgtm
11 years, 11 months ago (2012-07-16 15:31:07 UTC) #9
Leon
Latest patch set refactors find so that Pipe calls a different version which does the ...
11 years, 11 months ago (2012-07-16 20:39:01 UTC) #10
Leon
When I used the profiler to compare with and without my changes to see why ...
11 years, 11 months ago (2012-07-16 20:50:23 UTC) #11
Leon
When I used the profiler to compare with and without my changes to see why ...
11 years, 11 months ago (2012-07-16 20:50:56 UTC) #12
reed1
lgtm for my part (w/ question about Sets and the controller) https://codereview.appspot.com/6345102/diff/14002/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): ...
11 years, 11 months ago (2012-07-17 12:23:55 UTC) #13
Leon
Derek, any thoughts? https://codereview.appspot.com/6345102/diff/14002/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): https://codereview.appspot.com/6345102/diff/14002/src/core/SkPictureFlat.h#newcode290 src/core/SkPictureFlat.h:290: public: On 2012/07/17 12:23:55, reed1 wrote: ...
11 years, 11 months ago (2012-07-17 15:51:46 UTC) #14
DerekS
11 years, 11 months ago (2012-07-17 16:21:40 UTC) #15
I'm in favor of moving those into the controller, since it will make the code
more readable.  I can't think of any scenario that will need them separately and
even if we did we could always pull it back out.

lgtm
Sign in to reply to this message.

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