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

Issue 2712083002: color: Remove blink pre-conversion code (Closed)

Created:
3 years, 10 months ago by ccameron
Modified:
3 years, 9 months ago
CC:
aboxhall, aboxhall+watch_chromium.org, ajuma+watch-canvas_chromium.org, ajuma+watch_chromium.org, awdf+watch_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, dmazzoni, dmazzoni+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, dtseng+watch_chromium.org, eae+blinkwatch, fmalita+watch_chromium.org, fs, gyuyoung2, haraken, jam, jbroman, jchaffraix+rendering, je_julie, kinuko+watch, kouhei+svg_chromium.org, leviw+renderwatch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nektarios, nektar+watch_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, Peter Beverloo, piman+watch_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, yuzo+watch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

color: Remove blink pre-conversion code This removes ColorBehavior as a parameter to Image::draw. We will be specifying color behavior on the SkSurface that we render to, so this parameter is unneeded. Make most callers to ColorBehavior specify ColorBehavior::defaultBehavior, which will check runtime parameters to decide if pre-conversion or tagging is appropriate. Delete all references to "true color mode" -- Blink will not behave differently in the two modes (it will always tag its inputs with their SkColorSpace). Leave ColorBehavior as an argument to ImageDecoder, because some interfaces (WebGL in particular) will want to specify the "ignore" behavior. Don't remove ColorBehavior as an argument to imageForCurrentFrame, at least yet. The SkImage created will need to specify some color space, and allowing the caller to parameterize that is reasonable. R=junov,chrishtr TBR=esprehn BUG=667411 BUG=667420 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2712083002 Cr-Commit-Position: refs/heads/master@{#454155} Committed: https://chromium.googlesource.com/chromium/src/+/0713546fe2092b05fb75c52ba9da223adda2681f

Patch Set 1 #

Patch Set 2 : git cl try #

Total comments: 2

Patch Set 3 : Remove a bit more #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -130 lines) Patch
M third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp View 3 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/shapes/Shape.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/DragImageTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImage.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImage.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.h View 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp View 5 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp View 2 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.h View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 2 4 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 2 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 chunks +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.h View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.cpp View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp View 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp View 1 chunk +1 line, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (29 generated)
Justin Novosad
Agree 100% with this approach lgtm
3 years, 9 months ago (2017-02-27 20:35:07 UTC) #9
chrishtr
lgtm https://codereview.chromium.org/2712083002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp File third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp (left): https://codereview.chromium.org/2712083002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp#oldcode831 third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp:831: Image::ClampImageToSourceRect, m_colorBehavior); Remove m_colorBehavior entirely?
3 years, 9 months ago (2017-02-28 21:21:28 UTC) #16
ccameron
https://codereview.chromium.org/2712083002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp File third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp (left): https://codereview.chromium.org/2712083002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp#oldcode831 third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp:831: Image::ClampImageToSourceRect, m_colorBehavior); On 2017/02/28 21:21:28, chrishtr wrote: > Remove ...
3 years, 9 months ago (2017-03-01 20:40:33 UTC) #19
Justin Novosad
Nice! re-lgtm
3 years, 9 months ago (2017-03-01 20:42:40 UTC) #22
chrishtr
lgtm
3 years, 9 months ago (2017-03-01 20:56:11 UTC) #23
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/2712083002/40001
3 years, 9 months ago (2017-03-01 22:10:08 UTC) #27
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/svg/graphics/SVGImage.h: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-01 22:25:55 UTC) #29
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/2712083002/60001
3 years, 9 months ago (2017-03-02 00:25:00 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 02:30:16 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0713546fe2092b05fb75c52ba9da...

Powered by Google App Engine
This is Rietveld 408576698