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

Issue 2559013002: Add ColorBehavior to blink::Image draw methods (Closed)

Created:
4 years ago by ccameron
Modified:
4 years ago
CC:
aboxhall, aboxhall+watch_chromium.org, ajuma+watch_chromium.org, ajuma+watch-canvas_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dcheng, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dshwang, drott+blinkwatch_chromium.org, krit, dtseng+watch_chromium.org, eae+blinkwatch, f(malita), fs, gyuyoung2, haraken, jbroman+watch_chromium.org, jbroman, jchaffraix+rendering, je_julie, kouhei+svg_chromium.org, leviw+renderwatch, nektar+watch_chromium.org, nektarios, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, 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

Add ColorBehavior to Image draw methods Add a ColorBehavior argument to - blink::Image::imageForCurrentFrame - blink::Image::draw - blink::Image::applyShader Plumb these arguments through to all sub-classes. For sub-classes where there is a trivial implementation, add it (e.g, blink::BitmapImage). For all other sub-classes and callsites that need behavior changes, add TODOs referencing the appropriate bugs. This patch should have no behavior change -- it just formally propagates arguments that were previously implied or pulled out of global variables. 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 Committed: https://crrev.com/7d997bde5eb18172951ccc321744929aea560d36 Cr-Commit-Position: refs/heads/master@{#437666}

Patch Set 1 #

Patch Set 2 : Add TODO bugs #

Patch Set 3 : Put on top of GraphicsLayer changes #

Patch Set 4 : Format #

Patch Set 5 : Rebase #

Total comments: 3

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -130 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp View 1 2 3 4 5 3 chunks +14 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 4 chunks +19 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp View 3 chunks +42 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 5 5 chunks +17 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp View 1 2 3 4 5 3 chunks +15 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/shapes/Shape.cpp View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.cpp View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp View 1 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 3 chunks +14 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/DragImage.cpp View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/DragImageTest.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebImage.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImage.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImage.cpp View 1 2 3 4 5 2 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp View 1 2 5 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GeneratedImage.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.h View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.cpp View 1 2 3 4 5 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImagePattern.cpp View 1 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/PlaceholderImage.cpp View 1 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp View 1 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 41 (30 generated)
ccameron
PTAL This plumbs through the ColorBehavior, which we'll have to start respecting. The implicit behavior ...
4 years ago (2016-12-08 07:11:40 UTC) #20
ccameron
4 years ago (2016-12-08 22:19:15 UTC) #23
chrishtr
lgtm
4 years ago (2016-12-09 01:35:34 UTC) #24
esprehn
lgtm
4 years ago (2016-12-09 01:39:32 UTC) #25
Justin Novosad
https://codereview.chromium.org/2559013002/diff/80001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp (right): https://codereview.chromium.org/2559013002/diff/80001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp#newcode1081 third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp:1081: // TODO(ccameron): Canvas should draw in sRGB by default. ...
4 years ago (2016-12-09 02:17:36 UTC) #26
pdr.
Plumbing LGTM. I had not thought of Junov's point about animated gifs on two monitors ...
4 years ago (2016-12-09 02:45:53 UTC) #27
ccameron
https://codereview.chromium.org/2559013002/diff/80001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp (right): https://codereview.chromium.org/2559013002/diff/80001/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp#newcode1085 third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp:1085: ColorBehavior::transformToGlobalTarget()); On 2016/12/09 02:17:35, Justin Novosad wrote: > I ...
4 years ago (2016-12-09 03:30:57 UTC) #28
Justin Novosad
On 2016/12/09 03:30:57, ccameron wrote: > > It is true, as you mention, that, if ...
4 years ago (2016-12-09 19:43:33 UTC) #31
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/2559013002/100001
4 years ago (2016-12-09 21:34:50 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-09 22:06:35 UTC) #39
commit-bot: I haz the power
4 years ago (2016-12-12 14:56:50 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7d997bde5eb18172951ccc321744929aea560d36
Cr-Commit-Position: refs/heads/master@{#437666}

Powered by Google App Engine
This is Rietveld 408576698