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

Issue 130913018: Templetized SkWriter32 readTAt() & overwriteTAt() (Closed)

Created:
6 years, 10 months ago by f(malita)
Modified:
6 years, 10 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Templetized SkWriter32 readTAt() & overwriteTAt() Convert SkWriter32::{read,write}32At() to ::{read,overwrite}TAt<>() to allow peeking/updating arbitrary records. BUG=skia: R=reed@google.com,robertphillips@google.com,mtklein@google.com Committed: http://code.google.com/p/skia/source/detail?r=13416

Patch Set 1 #

Patch Set 2 : Win build fix #

Total comments: 12

Patch Set 3 : readTAt()/overwriteTAt() only #

Total comments: 4

Patch Set 4 : Refactored writeString, reservePad. #

Total comments: 4

Patch Set 5 : Updated, rebased. #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -41 lines) Patch
M include/core/SkWriter32.h View 1 2 3 4 5 2 chunks +19 lines, -13 lines 0 comments Download
M src/core/SkMatrixClipStateMgr.cpp 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 10 chunks +14 lines, -14 lines 0 comments Download
M src/core/SkWriteBuffer.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkWriter32.cpp View 1 2 3 4 5 1 chunk +7 lines, -11 lines 0 comments Download
M tests/Writer32Test.cpp View 1 2 3 4 5 chunks +47 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
f(malita)
This might be useful even considering mtklein's upcoming SkWriter32 refactor.
6 years, 10 months ago (2014-02-05 22:03:27 UTC) #1
mtklein
I think it's a reasonable thing to guarantee that SkWriter32 will keep the bytes it ...
6 years, 10 months ago (2014-02-06 21:38:16 UTC) #2
f(malita)
https://codereview.chromium.org/130913018/diff/70001/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/130913018/diff/70001/include/core/SkWriter32.h#newcode84 include/core/SkWriter32.h:84: // atomically at the given offset. On 2014/02/06 21:38:16, ...
6 years, 10 months ago (2014-02-10 16:10:34 UTC) #3
f(malita)
On 2014/02/10 16:10:34, Florin Malita wrote: > https://codereview.chromium.org/130913018/diff/70001/include/core/SkWriter32.h#newcode96 > include/core/SkWriter32.h:96: inline void writeT(const T& value) ...
6 years, 10 months ago (2014-02-10 20:22:54 UTC) #4
ian_cottrell
So when I commit https://codereview.chromium.org/156683004/ the entire buffer will always be contiguous in practice, but ...
6 years, 10 months ago (2014-02-10 20:57:07 UTC) #5
f(malita)
On 2014/02/10 20:57:07, ian_cottrell wrote: > So when I commit https://codereview.chromium.org/156683004/ the entire buffer > ...
6 years, 10 months ago (2014-02-10 21:56:25 UTC) #6
mtklein
https://codereview.chromium.org/130913018/diff/200001/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/130913018/diff/200001/include/core/SkWriter32.h#newcode90 include/core/SkWriter32.h:90: void overwriteTAt(const T& value, size_t offset) { I have ...
6 years, 10 months ago (2014-02-10 22:37:34 UTC) #7
mtklein
On 2014/02/10 22:37:34, mtklein wrote: > https://codereview.chromium.org/130913018/diff/200001/include/core/SkWriter32.h > File include/core/SkWriter32.h (right): > > https://codereview.chromium.org/130913018/diff/200001/include/core/SkWriter32.h#newcode90 > ...
6 years, 10 months ago (2014-02-10 22:39:12 UTC) #8
f(malita)
https://codereview.chromium.org/130913018/diff/200001/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/130913018/diff/200001/include/core/SkWriter32.h#newcode90 include/core/SkWriter32.h:90: void overwriteTAt(const T& value, size_t offset) { On 2014/02/10 ...
6 years, 10 months ago (2014-02-11 03:30:56 UTC) #9
mtklein
lgtm https://codereview.chromium.org/130913018/diff/330001/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/130913018/diff/330001/include/core/SkWriter32.h#newcode188 include/core/SkWriter32.h:188: p[alignedSize / 4 - 1] = 0; Duh. ...
6 years, 10 months ago (2014-02-11 13:18:10 UTC) #10
f(malita)
https://codereview.chromium.org/130913018/diff/330001/include/core/SkWriter32.h File include/core/SkWriter32.h (right): https://codereview.chromium.org/130913018/diff/330001/include/core/SkWriter32.h#newcode188 include/core/SkWriter32.h:188: p[alignedSize / 4 - 1] = 0; On 2014/02/11 ...
6 years, 10 months ago (2014-02-11 14:09:35 UTC) #11
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 10 months ago (2014-02-11 14:44:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/130913018/430001
6 years, 10 months ago (2014-02-11 14:44:15 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-11 14:44:21 UTC) #14
commit-bot: I haz the power
Presubmit check for 130913018-430001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 10 months ago (2014-02-11 14:44:21 UTC) #15
reed1
Wow, are we really promising to support arbitrary-sized contiguous blocks for peeking/reading? I thought we ...
6 years, 10 months ago (2014-02-11 15:33:05 UTC) #16
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 10 months ago (2014-02-11 21:35:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/130913018/430001
6 years, 10 months ago (2014-02-11 21:35:59 UTC) #18
f(malita)
The CQ bit was unchecked by fmalita@chromium.org
6 years, 10 months ago (2014-02-11 21:42:30 UTC) #19
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 10 months ago (2014-02-11 22:27:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/fmalita@chromium.org/130913018/600001
6 years, 10 months ago (2014-02-11 22:27:49 UTC) #21
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 22:39:02 UTC) #22
Message was sent while issue was closed.
Change committed as 13416

Powered by Google App Engine
This is Rietveld 408576698