Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Issue 156683004: Cleaner external buffer handling in SkWriter32 (Closed)

Created:
6 years, 10 months ago by iancottrell
Modified:
6 years, 10 months ago
Reviewers:
tomhudson, mtklein, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Cleaner external buffer handling in SkWriter32 This unifies the internal and external buffer handling so that the difference only has to be noticed when growing. Removing the branches from the common read and write cases gives a significant speedup. BUG=skia:2125 Committed: http://code.google.com/p/skia/source/detail?r=13396

Patch Set 1 #

Total comments: 21

Patch Set 2 : Review fixes (spaced and comments) #

Total comments: 15

Patch Set 3 : Review fixes: Renames, comments and asserts #

Patch Set 4 : Make the SkWriter32 constructor call reset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -62 lines) Patch
M include/core/SkTDArray.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M include/core/SkWriter32.h View 1 2 3 5 chunks +42 lines, -62 lines 0 comments Download
M src/core/SkWriter32.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
iancottrell
This does not alter the growth pattern, or implement the buffer transfer optimizations, it just ...
6 years, 10 months ago (2014-02-06 17:41:45 UTC) #1
reed1
https://codereview.chromium.org/156683004/diff/1/include/core/SkTDArray.h File include/core/SkTDArray.h (right): https://codereview.chromium.org/156683004/diff/1/include/core/SkTDArray.h#newcode104 include/core/SkTDArray.h:104: * Return the number of elements there is space ...
6 years, 10 months ago (2014-02-06 20:14:40 UTC) #2
iancottrell
https://codereview.chromium.org/156683004/diff/1/include/core/SkTDArray.h File include/core/SkTDArray.h (right): https://codereview.chromium.org/156683004/diff/1/include/core/SkTDArray.h#newcode104 include/core/SkTDArray.h:104: * Return the number of elements there is space ...
6 years, 10 months ago (2014-02-06 21:33:06 UTC) #3
reed1
lgtm https://codereview.chromium.org/156683004/diff/1/include/core/SkTDArray.h File include/core/SkTDArray.h (right): https://codereview.chromium.org/156683004/diff/1/include/core/SkTDArray.h#newcode104 include/core/SkTDArray.h:104: * Return the number of elements there is ...
6 years, 10 months ago (2014-02-06 21:41:34 UTC) #4
mtklein
https://codereview.chromium.org/156683004/diff/1/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/156683004/diff/1/include/core/SkWriter32.h#newcode60 include/core/SkWriter32.h:60: // The pointer may be invalidated by any future ...
6 years, 10 months ago (2014-02-06 22:01:23 UTC) #5
iancottrell
https://codereview.chromium.org/156683004/diff/1/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/156683004/diff/1/include/core/SkWriter32.h#newcode60 include/core/SkWriter32.h:60: // The pointer may be invalidated by any future ...
6 years, 10 months ago (2014-02-07 12:20:40 UTC) #6
mtklein
On 2014/02/07 12:20:40, iancottrell wrote: > https://codereview.chromium.org/156683004/diff/1/include/core/SkWriter32.h > File include/core/SkWriter32.h (right): > > https://codereview.chromium.org/156683004/diff/1/include/core/SkWriter32.h#newcode60 > ...
6 years, 10 months ago (2014-02-07 13:36:26 UTC) #7
reed1
perhaps we could introduce a private init() method, that can be called by both the ...
6 years, 10 months ago (2014-02-07 14:52:49 UTC) #8
mtklein
On 2014/02/07 14:52:49, reed1 wrote: > perhaps we could introduce a private init() method, that ...
6 years, 10 months ago (2014-02-07 15:02:08 UTC) #9
reed1
On 2014/02/07 15:02:08, mtklein wrote: > On 2014/02/07 14:52:49, reed1 wrote: > > perhaps we ...
6 years, 10 months ago (2014-02-07 15:06:34 UTC) #10
mtklein
On 2014/02/07 15:06:34, reed1 wrote: > On 2014/02/07 15:02:08, mtklein wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 15:19:11 UTC) #11
iancottrell
On 2014/02/07 15:19:11, mtklein wrote: > On 2014/02/07 15:06:34, reed1 wrote: > > On 2014/02/07 ...
6 years, 10 months ago (2014-02-07 15:22:04 UTC) #12
iancottrell
The CQ bit was checked by iancottrell@google.com
6 years, 10 months ago (2014-02-11 10:03:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/iancottrell@google.com/156683004/210001
6 years, 10 months ago (2014-02-11 10:03:50 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 10:17:05 UTC) #15
Message was sent while issue was closed.
Change committed as 13396

Powered by Google App Engine
This is Rietveld 408576698