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

Issue 872683008: Small cleanup on BMPImageReader.cpp (Closed)

Created:
5 years, 10 months ago by changseok
Modified:
5 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Small cleanup on BMPImageReader.cpp 'm_headerOffset + m_infoHeader.biSize' is used often in BMPImageReader.cpp. It is even recalulated several time in a same function. This patch cleans up this kind of repeated code. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189471

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments #

Total comments: 6

Patch Set 3 : Updated patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
M Source/platform/image-decoders/bmp/BMPImageReader.cpp View 1 2 4 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
changseok
PTAL.
5 years, 10 months ago (2015-01-29 15:27:24 UTC) #2
Noel Gordon
Seems ok to me. Peter might have suggestions here.
5 years, 10 months ago (2015-01-29 22:47:30 UTC) #3
changseok
Any other comments on this?
5 years, 10 months ago (2015-02-03 23:36:45 UTC) #5
Peter Kasting
Sorry, I didn't see this. https://codereview.chromium.org/872683008/diff/1/Source/platform/image-decoders/bmp/BMPImageReader.cpp File Source/platform/image-decoders/bmp/BMPImageReader.cpp (right): https://codereview.chromium.org/872683008/diff/1/Source/platform/image-decoders/bmp/BMPImageReader.cpp#newcode178 Source/platform/image-decoders/bmp/BMPImageReader.cpp:178: const size_t headerAndInfoHeaderSize = ...
5 years, 10 months ago (2015-02-03 23:56:43 UTC) #7
changseok
https://codereview.chromium.org/872683008/diff/1/Source/platform/image-decoders/bmp/BMPImageReader.cpp File Source/platform/image-decoders/bmp/BMPImageReader.cpp (right): https://codereview.chromium.org/872683008/diff/1/Source/platform/image-decoders/bmp/BMPImageReader.cpp#newcode178 Source/platform/image-decoders/bmp/BMPImageReader.cpp:178: const size_t headerAndInfoHeaderSize = sizeOfHeaderAndInfoHeader(); On 2015/02/03 23:56:43, Peter ...
5 years, 10 months ago (2015-02-04 04:10:32 UTC) #8
Peter Kasting
LGTM https://codereview.chromium.org/872683008/diff/20001/Source/platform/image-decoders/bmp/BMPImageReader.cpp File Source/platform/image-decoders/bmp/BMPImageReader.cpp (right): https://codereview.chromium.org/872683008/diff/20001/Source/platform/image-decoders/bmp/BMPImageReader.cpp#newcode427 Source/platform/image-decoders/bmp/BMPImageReader.cpp:427: const size_t bitmasksSize = 12; Tiny nit: Swap ...
5 years, 10 months ago (2015-02-04 04:59:02 UTC) #9
changseok
Thanks! https://codereview.chromium.org/872683008/diff/20001/Source/platform/image-decoders/bmp/BMPImageReader.cpp File Source/platform/image-decoders/bmp/BMPImageReader.cpp (right): https://codereview.chromium.org/872683008/diff/20001/Source/platform/image-decoders/bmp/BMPImageReader.cpp#newcode427 Source/platform/image-decoders/bmp/BMPImageReader.cpp:427: const size_t bitmasksSize = 12; On 2015/02/04 04:59:02, ...
5 years, 10 months ago (2015-02-04 05:34:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872683008/40001
5 years, 10 months ago (2015-02-04 06:04:25 UTC) #13
Noel Gordon
LGTM
5 years, 10 months ago (2015-02-04 07:14:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/41244)
5 years, 10 months ago (2015-02-04 08:31:40 UTC) #16
changseok
On 2015/02/04 08:31:40, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-02-04 08:35:06 UTC) #17
changseok
On 2015/02/04 08:35:06, changseok wrote: > On 2015/02/04 08:31:40, I haz the power (commit-bot) wrote: ...
5 years, 10 months ago (2015-02-04 09:14:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872683008/40001
5 years, 10 months ago (2015-02-04 09:14:52 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 10:13:23 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189471

Powered by Google App Engine
This is Rietveld 408576698