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

Issue 2454123002: Refactor image decoders to use 'colorSpace' instead of 'colorProfile' (Closed)

Created:
4 years, 1 month ago by msarett
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jzern, krit, drott+blinkwatch_chromium.org, urvang, blink-reviews-platform-graphics_chromium.org, skal, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, Justin Novosad, Rik, f(malita), blink-reviews, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor image decoders to use 'colorSpace' instead of 'colorProfile' This is a little bit more logical given that images (PNGs) can encode color space information without actually using a color profile. This CL started as an attempt to improve support for these PNGs, but I think it's useful to refactor first. TBR=aelias@chromium.org TBR=esprehn@chromium.org BUG= Committed: https://crrev.com/ae4f0f021e5e13154580b2ae57a71cbb573930b2 Cr-Commit-Position: refs/heads/master@{#428237}

Patch Set 1 #

Total comments: 5

Patch Set 2 : More profile -> space #

Total comments: 4

Patch Set 3 : Rearrange setColorSpaceAndComputeTransform() a bit #

Patch Set 4 : Fix legacy ImageFrame #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -196 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 3 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationImageLoader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebImage.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp View 1 4 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageSource.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp View 1 2 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h View 1 6 chunks +19 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp View 1 2 3 chunks +11 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoderTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.h View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp View 1 2 3 1 chunk +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp View 1 2 chunks +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoderTest.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp View 1 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp View 1 6 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp View 1 5 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp View 1 3 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebImageDecoder.cpp View 1 1 chunk +6 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (15 generated)
msarett
scroggo@: third_party/WebKit/Source/platform/image-decoders/ fmalita@: Hopefully trivial... third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h ccameron@: See comment on slight behavior change in ...
4 years, 1 month ago (2016-10-27 15:43:22 UTC) #3
f(malita)
https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp File third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp (right): https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp#newcode183 third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp:183: return m_actualDecoder ? m_actualDecoder->hasColorSpace() : m_hasColorProfile; If we're renaming ...
4 years, 1 month ago (2016-10-27 15:57:28 UTC) #4
msarett
https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp File third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp (right): https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp#newcode183 third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp:183: return m_actualDecoder ? m_actualDecoder->hasColorSpace() : m_hasColorProfile; On 2016/10/27 15:57:28, ...
4 years, 1 month ago (2016-10-27 16:42:57 UTC) #5
f(malita)
On 2016/10/27 16:42:57, msarett wrote: > https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp > File third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp > (right): > > https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp#newcode183 ...
4 years, 1 month ago (2016-10-27 17:57:24 UTC) #6
msarett
Many thanks for the big review Florin! https://codereview.chromium.org/2454123002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp (right): https://codereview.chromium.org/2454123002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp#newcode368 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp:368: setColorSpaceAndComputeTransform(std::move(srcSpace)); On ...
4 years, 1 month ago (2016-10-27 18:21:42 UTC) #7
scroggo_chromium
image-decoders code lgtm
4 years, 1 month ago (2016-10-27 18:24:13 UTC) #10
ccameron
lgtm https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp File third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp (left): https://codereview.chromium.org/2454123002/diff/20001/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp#oldcode120 third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp:120: DCHECK(colorSpace); On 2016/10/27 15:43:22, msarett wrote: > We ...
4 years, 1 month ago (2016-10-27 22:36:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2454123002/80001
4 years, 1 month ago (2016-10-28 01:09:50 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 1 month ago (2016-10-28 01:42:55 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 01:45:57 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ae4f0f021e5e13154580b2ae57a71cbb573930b2
Cr-Commit-Position: refs/heads/master@{#428237}

Powered by Google App Engine
This is Rietveld 408576698