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

Issue 1543593002: Forward fill and stroke styles from 2d canvas to canvas filters (Closed)

Created:
5 years ago by ajuma
Modified:
4 years, 11 months ago
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), gyuyoung2, jbroman, jchaffraix+rendering, kinuko+watch, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, vmpstr+blinkwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forward fill and stroke styles from 2d canvas to canvas filters This forwards the fill and stroke style from 2d canvas to the FillPaint and StrokePaint inputs of canvas filters. BUG=502877 Committed: https://crrev.com/435e3bbf39d8799289f0f0435e7065f841a702ac Cr-Commit-Position: refs/heads/master@{#368726}

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : Address review comments #

Patch Set 5 : Rebase #

Total comments: 5

Patch Set 6 : Address review comments #

Patch Set 7 : Remove PaintFilterEffect::affectsTransparentPixels #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -30 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color-expected.html View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient.html View 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-pattern.html View 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-pattern-expected.html View 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-stroke-paint-color.html View 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-stroke-paint-color-expected.html View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-stroke-paint-gradient.html View 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-stroke-paint-gradient-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-stroke-paint-pattern.html View 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-stroke-paint-pattern-expected.html View 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FilterEffectBuilder.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp View 1 2 3 chunks +42 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp View 1 2 3 4 5 1 chunk +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.cpp View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SourceAlpha.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SourceAlpha.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
ajuma
This depends on skia CL http://crrev.com/1543583002
5 years ago (2015-12-21 16:41:57 UTC) #3
Stephen White
Cool stuff! Could you break out SVG changes from the canvas changes, so we can ...
5 years ago (2015-12-21 16:47:42 UTC) #4
ajuma
On 2015/12/21 16:47:42, Stephen White wrote: > Cool stuff! > > Could you break out ...
5 years ago (2015-12-21 16:58:55 UTC) #5
Justin Novosad
+fmalita for expertise on skia usage in blink. https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h File third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h (right): https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h#newcode57 third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h:57: static ...
5 years ago (2015-12-21 18:10:27 UTC) #7
f(malita)
+fs https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h File third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h (right): https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h#newcode57 third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h:57: static PassRefPtrWillBeRawPtr<Filter> build(float zoom, Element*, FilterEffect* previousEffect, const ...
5 years ago (2015-12-21 19:01:05 UTC) #9
fs
https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h File third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h (right): https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h#newcode57 third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h:57: static PassRefPtrWillBeRawPtr<Filter> build(float zoom, Element*, FilterEffect* previousEffect, const ReferenceFilterOperation&, ...
5 years ago (2015-12-21 19:34:20 UTC) #10
ajuma
Sorry for the delay (this was blocked on getting an SkPaintImageFilter into skia). https://codereview.chromium.org/1543593002/diff/20001/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h File ...
4 years, 11 months ago (2016-01-11 19:14:08 UTC) #11
Justin Novosad
https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp (right): https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp#newcode359 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp:359: SkPaint fillPaint; Is there a reason why we need ...
4 years, 11 months ago (2016-01-11 19:52:42 UTC) #12
fs
core/ bits LGTM (Don't forget s/2015/2016/ in new files BTW =)) https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h File third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h (right): ...
4 years, 11 months ago (2016-01-11 20:19:24 UTC) #13
ajuma
https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp (right): https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp#newcode359 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp:359: SkPaint fillPaint; On 2016/01/11 19:52:42, Justin Novosad wrote: > ...
4 years, 11 months ago (2016-01-11 21:33:08 UTC) #14
ajuma
https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h File third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h (right): https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h#newcode23 third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h:23: bool affectsTransparentPixels() override { return true; } On 2016/01/11 ...
4 years, 11 months ago (2016-01-11 21:34:18 UTC) #15
Stephen White
On 2016/01/11 21:34:18, ajuma wrote: > https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h > File third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h > (right): > > https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h#newcode23 ...
4 years, 11 months ago (2016-01-11 21:36:36 UTC) #16
ajuma
On 2016/01/11 21:36:36, Stephen White wrote: > On 2016/01/11 21:34:18, ajuma wrote: > > > ...
4 years, 11 months ago (2016-01-11 21:41:46 UTC) #17
Stephen White
LGTM
4 years, 11 months ago (2016-01-11 21:50:28 UTC) #18
fs
On 2016/01/11 at 21:36:36, senorblanco wrote: > On 2016/01/11 21:34:18, ajuma wrote: > > https://codereview.chromium.org/1543593002/diff/80001/third_party/WebKit/Source/platform/graphics/filters/PaintFilterEffect.h ...
4 years, 11 months ago (2016-01-11 21:55:27 UTC) #19
Justin Novosad
Your interpretation of affectsTransparentPixels is correct. In any case, returning true conservatively is always safe ...
4 years, 11 months ago (2016-01-11 22:28:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1543593002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1543593002/120001
4 years, 11 months ago (2016-01-11 22:36:12 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 11 months ago (2016-01-12 00:01:40 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 00:03:36 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/435e3bbf39d8799289f0f0435e7065f841a702ac
Cr-Commit-Position: refs/heads/master@{#368726}

Powered by Google App Engine
This is Rietveld 408576698