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

Issue 2556723003: Merge color options into ColorBehavior (Closed)

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

Description

Merge color options into ColorBehavior There are dozens of places where we were passing an blink::ImageDecoder::ColorSpaceOption and sk_sp<SkColorSpace>. Merge these into a single ColorBehavior structure. TBR=peter BUG=667420 Committed: https://crrev.com/bf8e2f1a7b41c6f96136f9fc9617e685e0cb92bf Cr-Commit-Position: refs/heads/master@{#437100}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -327 lines) Patch
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 6 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp View 1 chunk +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationImageLoader.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebImage.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/ColorBehavior.h View 1 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp View 1 chunk +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp View 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTestWoPlatform.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h View 3 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp View 4 chunks +9 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageSource.cpp View 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h View 1 6 chunks +9 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp View 1 4 chunks +32 lines, -93 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageDecoderTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.h View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.h View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp View 2 chunks +12 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.h View 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp View 2 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoderTest.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoderTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoderTest.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoderTest.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebImageDecoder.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (15 generated)
ccameron
Lots of manual search-replace ...
4 years ago (2016-12-06 22:51:31 UTC) #4
pdr.
s/peter/philip but otherwise a great change :) Some minor comments below. https://codereview.chromium.org/2556723003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): ...
4 years ago (2016-12-07 19:29:37 UTC) #9
ccameron
Thanks -- updated https://codereview.chromium.org/2556723003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2556723003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode392 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:392: m_image = cropImage(input.get(), parsedOptions, PremultiplyAlpha, true); ...
4 years ago (2016-12-07 20:31:38 UTC) #12
pdr.
On 2016/12/07 at 20:31:38, ccameron wrote: > Thanks -- updated > > https://codereview.chromium.org/2556723003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp > File ...
4 years ago (2016-12-07 22:19:02 UTC) #13
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/2556723003/20001
4 years ago (2016-12-07 22:27:39 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-07 23:06:57 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-07 23:09:08 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bf8e2f1a7b41c6f96136f9fc9617e685e0cb92bf
Cr-Commit-Position: refs/heads/master@{#437100}

Powered by Google App Engine
This is Rietveld 408576698