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

Issue 2203903002: Color: Read embedded ICC profiles regardless of QCMS (Closed)

Created:
4 years, 4 months ago by ccameron
Modified:
4 years, 4 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, jzern, krit, drott+blinkwatch_chromium.org, urvang, blink-reviews-platform-graphics_chromium.org, skal, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, Rik, f(malita), blink-reviews, piman+watch_chromium.org, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Color: Read embedded ICC profiles regardless of QCMS Move code to load embedded ICC profiles out from behind the QCMS guard. Add plumbing for the ICC profile from ImageDecoder to ImageFrame, where the relevant SkBitmap is loaded. BUG=44872 Committed: https://crrev.com/453bdc54a3650850eb8f8c5b5ca58f5db48df73d Cr-Commit-Position: refs/heads/master@{#409942}

Patch Set 1 #

Patch Set 2 : Fix android build #

Patch Set 3 : Add plumbing through to ImageFrame #

Total comments: 2

Patch Set 4 : Remove the NotApplied part #

Patch Set 5 : Update tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -66 lines) Patch
M third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp View 1 2 3 4 2 chunks +0 lines, -4 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h View 1 2 3 5 chunks +22 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp View 1 2 3 4 chunks +14 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp View 1 2 3 4 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp View 1 2 3 5 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
ccameron
https://codereview.chromium.org/2203903002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp File third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp (right): https://codereview.chromium.org/2203903002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp#newcode102 third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp:102: // with newIccProfile, under a runtime flag. Next patch ...
4 years, 4 months ago (2016-08-02 20:31:31 UTC) #10
Justin Novosad
https://codereview.chromium.org/2203903002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h File third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h (right): https://codereview.chromium.org/2203903002/diff/40001/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h#newcode94 third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h:94: GammaAndColorProfileNotApplied You still need to keep the "Ignore" option ...
4 years, 4 months ago (2016-08-02 22:49:13 UTC) #13
ccameron
Good point -- that was causing the WebGL test failure that happened later. Updated.
4 years, 4 months ago (2016-08-03 22:14:03 UTC) #19
Justin Novosad
This is looking good IMHO. Let's get this committed. I think we are missing just ...
4 years, 4 months ago (2016-08-03 22:59:03 UTC) #20
ccameron
Oh -- adding a test for this turned out to be very simple! I'm leaving ...
4 years, 4 months ago (2016-08-04 22:07:29 UTC) #23
Justin Novosad
lgtm https://codereview.chromium.org/2203903002/diff/80001/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp File third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp (right): https://codereview.chromium.org/2203903002/diff/80001/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp#newcode221 third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp:221: TEST_F(BitmapImageTest, jpegHasColorProfile) On 2016/08/04 22:07:29, ccameron wrote: > ...
4 years, 4 months ago (2016-08-05 00:06:52 UTC) #26
ccameron
Thanks!
4 years, 4 months ago (2016-08-05 00:16:28 UTC) #27
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/2203903002/80001
4 years, 4 months ago (2016-08-05 00:16:55 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-05 00:21:22 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 00:23:38 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/453bdc54a3650850eb8f8c5b5ca58f5db48df73d
Cr-Commit-Position: refs/heads/master@{#409942}

Powered by Google App Engine
This is Rietveld 408576698