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

Issue 182733008: Switch the factory chunk in the skps to storing its size in bytes (Closed)

Created:
6 years, 9 months ago by robertphillips
Modified:
6 years, 9 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

This CL is motivated by the desire to make the skpinfo tool work a bit better. The main concern is that the assumptions made w.r.t. written bytes may not be valid for all SkWStream sub-classes. Committed: http://code.google.com/p/skia/source/detail?r=13673

Patch Set 1 #

Patch Set 2 : Add markers to allow clean up of backwards compatibility code #

Total comments: 3

Patch Set 3 : Added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -23 lines) Patch
M include/core/SkPicture.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkStream.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 6 chunks +50 lines, -18 lines 0 comments Download
M src/core/SkStream.cpp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M src/utils/SkMD5.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/skpinfo.cpp View 1 2 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
robertphillips
6 years, 9 months ago (2014-03-04 16:35:24 UTC) #1
robertphillips
6 years, 9 months ago (2014-03-04 16:50:32 UTC) #2
robertphillips
6 years, 9 months ago (2014-03-04 18:29:09 UTC) #3
bungeman-skia
Why not? lgtm https://codereview.chromium.org/182733008/diff/20001/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/182733008/diff/20001/include/core/SkStream.h#newcode220 include/core/SkStream.h:220: static int SizeOfPackedUInt(size_t value); No issue ...
6 years, 9 months ago (2014-03-04 23:01:49 UTC) #4
robertphillips
It is a bit odd that the chunk size in bytes will only be useful ...
6 years, 9 months ago (2014-03-05 14:30:27 UTC) #5
robertphillips
One practical upshot of this is that I would've liked to have added a check ...
6 years, 9 months ago (2014-03-05 14:36:31 UTC) #6
reed1
I just signed off on a diff CL that added bytesWritten() to another wstream subclass. ...
6 years, 9 months ago (2014-03-05 14:39:53 UTC) #7
reed1
6 years, 9 months ago (2014-03-05 14:40:28 UTC) #8
mtklein
On 2014/03/05 14:40:28, reed1 wrote: What beautiful timing: https://codereview.chromium.org/187653003/
6 years, 9 months ago (2014-03-05 14:59:55 UTC) #9
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-05 16:12:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/182733008/20001
6 years, 9 months ago (2014-03-05 16:12:52 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 16:12:55 UTC) #12
commit-bot: I haz the power
Presubmit check for 182733008-20001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-05 16:12:56 UTC) #13
robertphillips
My confusion (regarding SkDynamicMemoryWStream's behavior) has been resolved. This should work fine.
6 years, 9 months ago (2014-03-05 16:13:40 UTC) #14
reed1
lgtm w/ dox request https://codereview.chromium.org/182733008/diff/20001/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/182733008/diff/20001/include/core/SkStream.h#newcode220 include/core/SkStream.h:220: static int SizeOfPackedUInt(size_t value); /** ...
6 years, 9 months ago (2014-03-05 17:05:57 UTC) #15
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-05 17:17:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/182733008/40001
6 years, 9 months ago (2014-03-05 17:17:47 UTC) #17
robertphillips
https://codereview.chromium.org/182733008/diff/20001/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/182733008/diff/20001/include/core/SkStream.h#newcode220 include/core/SkStream.h:220: static int SizeOfPackedUInt(size_t value); On 2014/03/05 17:05:57, reed1 wrote: ...
6 years, 9 months ago (2014-03-05 17:18:24 UTC) #18
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 18:25:23 UTC) #19
Message was sent while issue was closed.
Change committed as 13673

Powered by Google App Engine
This is Rietveld 408576698