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

Issue 6431057: Pipe factory names independently from the flattenables using them. (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

Pipe factory names independently from the flattenables using them. Avoids an issue where a flattenable written twice might be written differently (the first time the flat data may have a name, whereas the second time it will have an index). Also add a test which confirms that identical flattenables will have the same SkFlatData representation. BUG=https://code.google.com/p/skia/issues/detail?id=721 TEST=FlatDataTest.cpp Committed: https://code.google.com/p/skia/source/detail?r=4896

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : Combine FactoryNames with a FactorySet #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -103 lines) Patch
M gyp/tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkFlattenable.h View 1 2 3 5 chunks +38 lines, -14 lines 0 comments Download
M include/pipe/SkGPipe.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkFlattenable.cpp View 1 2 2 chunks +40 lines, -0 lines 0 comments Download
M src/core/SkOrderedReadBuffer.cpp View 1 1 chunk +5 lines, -21 lines 0 comments Download
M src/core/SkOrderedWriteBuffer.cpp View 1 2 3 3 chunks +11 lines, -26 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 5 chunks +5 lines, -4 lines 0 comments Download
M src/core/SkPictureFlat.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/pipe/SkGPipePriv.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 13 chunks +65 lines, -35 lines 0 comments Download
A tests/FlatDataTest.cpp View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Leon
https://codereview.appspot.com/6431057/diff/2001/src/core/SkPictureFlat.h File src/core/SkPictureFlat.h (right): https://codereview.appspot.com/6431057/diff/2001/src/core/SkPictureFlat.h#newcode194 src/core/SkPictureFlat.h:194: SkRefCnt_SafeAssign(fFactoryNames, rec); Making my test case made me realize ...
11 years, 11 months ago (2012-07-23 19:04:02 UTC) #1
DerekS
I'm not opposed to the CL, but staring at the code does make me wonder ...
11 years, 11 months ago (2012-07-24 03:31:19 UTC) #2
Leon
I agree that always flattening the name would be much simpler. I could write a ...
11 years, 11 months ago (2012-07-24 21:21:39 UTC) #3
Leon
I have combined the name recorder and factory set into the same object (for my ...
11 years, 11 months ago (2012-07-31 22:48:18 UTC) #4
DerekS
This code does look much cleaner! Thanks for working on this. http://codereview.appspot.com/6431057/diff/16001/tests/FlatDataTest.cpp File tests/FlatDataTest.cpp (right): ...
11 years, 11 months ago (2012-08-01 13:08:01 UTC) #5
Leon
http://codereview.appspot.com/6431057/diff/16001/tests/FlatDataTest.cpp File tests/FlatDataTest.cpp (right): http://codereview.appspot.com/6431057/diff/16001/tests/FlatDataTest.cpp#newcode38 tests/FlatDataTest.cpp:38: static void Tests(skiatest::Reporter* reporter) { On 2012/08/01 13:08:01, DerekS ...
11 years, 11 months ago (2012-08-01 14:47:18 UTC) #6
DerekS
11 years, 11 months ago (2012-08-01 16:00:13 UTC) #7
lgtm.  I have a CL that moves some of the flattening code around that I'll
publish shortly so we'll need to coordinate when these CL's go in so we can
merge the changes.
Sign in to reply to this message.

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