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

Issue 145053003: Have peek32 return uint32_t& to make it harder to look at more than 4 bytes. (Closed)

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

Description

Have peek32 return uint32_t& to make it harder to look at more than 4 bytes. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=13265

Patch Set 1 #

Total comments: 3

Patch Set 2 : read write at 32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -38 lines) Patch
M include/core/SkWriter32.h View 1 3 chunks +16 lines, -15 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 10 chunks +16 lines, -20 lines 0 comments Download
M src/core/SkWriteBuffer.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/Writer32Test.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
mtklein
6 years, 10 months ago (2014-01-30 22:05:23 UTC) #1
reed1
https://codereview.chromium.org/145053003/diff/1/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/145053003/diff/1/src/core/SkPictureRecord.cpp#newcode335 src/core/SkPictureRecord.cpp:335: command = (command & MASK_24) | (NOOP << 24); ...
6 years, 10 months ago (2014-01-31 14:26:08 UTC) #2
reed1
I don't feel strongly, so if others like this change, I'm fine too.
6 years, 10 months ago (2014-01-31 14:26:35 UTC) #3
mtklein
https://codereview.chromium.org/145053003/diff/1/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/145053003/diff/1/src/core/SkPictureRecord.cpp#newcode335 src/core/SkPictureRecord.cpp:335: command = (command & MASK_24) | (NOOP << 24); ...
6 years, 10 months ago (2014-01-31 14:34:26 UTC) #4
robertphillips
I'm in the same boat. Assigning back to the reference does seem a bit side-effecty ...
6 years, 10 months ago (2014-01-31 14:57:37 UTC) #5
reed1
On 2014/01/31 14:57:37, robertphillips wrote: > I'm in the same boat. Assigning back to the ...
6 years, 10 months ago (2014-01-31 15:03:25 UTC) #6
mtklein
On 2014/01/31 15:03:25, reed1 wrote: > On 2014/01/31 14:57:37, robertphillips wrote: > > I'm in ...
6 years, 10 months ago (2014-01-31 15:37:03 UTC) #7
mtklein
6 years, 10 months ago (2014-01-31 15:38:46 UTC) #8
reed1
lgtm
6 years, 10 months ago (2014-01-31 15:47:39 UTC) #9
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-01-31 15:57:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/145053003/80001
6 years, 10 months ago (2014-01-31 15:57:57 UTC) #11
commit-bot: I haz the power
Change committed as 13265
6 years, 10 months ago (2014-01-31 16:23:02 UTC) #12
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 16:23:05 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-01-31 16:23:06 UTC) #14
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698