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

Issue 1316203008: Never consolidate data in ICO decoder (Closed)

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

Description

Never consolidate data in ICO decoder Follows the same approach as BMPImageDecoder: Use a FastSharedBufferReader to avoid consolidation. Add an optional offset to PNGImageDecoder for ICOImageDecoder, so that PNGImageDecoder can read a PNG subimage in an ICO without copying the data. This eliminates another call to SharedBuffer::data(), as well as a copy to create the separate SharedBuffer for PNG. BUG=467772 BUG=528625 Committed: https://crrev.com/0bad3920ae6c1274d35c95281afcfbab8cc33a78 git-svn-id: svn://svn.chromium.org/blink/trunk@201981 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : Remove unnecessary blank line #

Total comments: 10

Patch Set 3 : Respond to pkasting@'s comments in patch set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -26 lines) Patch
M Source/platform/image-decoders/ico/ICOImageDecoder.h View 1 3 chunks +15 lines, -4 lines 0 comments Download
M Source/platform/image-decoders/ico/ICOImageDecoder.cpp View 1 2 7 chunks +18 lines, -17 lines 0 comments Download
M Source/platform/image-decoders/png/PNGImageDecoder.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/image-decoders/png/PNGImageDecoder.cpp View 3 chunks +5 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (3 generated)
scroggo_chromium
This tacks on to crrev.com/1259083003. One thing I did not consider when I made that ...
5 years, 3 months ago (2015-09-08 17:53:20 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.cpp File Source/platform/image-decoders/ico/ICOImageDecoder.cpp (right): https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.cpp#newcode188 Source/platform/image-decoders/ico/ICOImageDecoder.cpp:188: GammaAndColorProfileOption colorOptions = m_ignoreGammaAndColorProfile ? GammaAndColorProfileIgnored : GammaAndColorProfileApplied; ...
5 years, 3 months ago (2015-09-08 20:03:13 UTC) #3
scroggo_chromium
https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.cpp File Source/platform/image-decoders/ico/ICOImageDecoder.cpp (right): https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.cpp#newcode188 Source/platform/image-decoders/ico/ICOImageDecoder.cpp:188: GammaAndColorProfileOption colorOptions = m_ignoreGammaAndColorProfile ? GammaAndColorProfileIgnored : GammaAndColorProfileApplied; On ...
5 years, 3 months ago (2015-09-08 20:52:52 UTC) #4
Peter Kasting
https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.h File Source/platform/image-decoders/ico/ICOImageDecoder.h (right): https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.h#newcode87 Source/platform/image-decoders/ico/ICOImageDecoder.h:87: // TODO (scroggo): These functions are identical to functions ...
5 years, 3 months ago (2015-09-08 21:01:05 UTC) #5
scroggo_chromium
https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.h File Source/platform/image-decoders/ico/ICOImageDecoder.h (right): https://codereview.chromium.org/1316203008/diff/20001/Source/platform/image-decoders/ico/ICOImageDecoder.h#newcode87 Source/platform/image-decoders/ico/ICOImageDecoder.h:87: // TODO (scroggo): These functions are identical to functions ...
5 years, 3 months ago (2015-09-09 14:32:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316203008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316203008/40001
5 years, 3 months ago (2015-09-09 14:32:40 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201981
5 years, 3 months ago (2015-09-09 15:52:09 UTC) #10
Noel Gordon
LGTM ftr
5 years, 3 months ago (2015-09-09 22:48:34 UTC) #11
scroggo
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1338293002/ by scroggo@google.com. ...
5 years, 3 months ago (2015-09-14 13:27:24 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:00:11 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0bad3920ae6c1274d35c95281afcfbab8cc33a78

Powered by Google App Engine
This is Rietveld 408576698