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

Issue 13984002: Extracting the SVG Filter Reference implementation out of the FilterEffectRenderer into its own typ…

Created:
7 years, 8 months ago by achicu
Modified:
7 years, 8 months ago
CC:
blink-reviews, pdr, jamesr, Stephen Chennney, f(malita), jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Extracting the SVG Filter Reference implementation out of the FilterEffectRenderer into its own type of filter. This way we don't need to build a FilterEffectRenderer when rendering the SVG reference in the compositor. BUG=229714

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed ReferenceFilterRenderer from FilterOperation.h #

Total comments: 1

Patch Set 3 : Removed the changes in SkiaImageFilterBuilder.cpp #

Total comments: 7

Patch Set 4 : rebased patch #

Patch Set 5 : [Draft] Addressed a couple of the comments. #

Patch Set 6 : Passing all filter tests #

Total comments: 2

Patch Set 7 : Updated to ToT, fixed style, warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -153 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/filters/Filter.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/platform/graphics/filters/FilterEffect.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/filters/FilterEffect.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/filters/FilterOperation.h View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
A + Source/core/platform/graphics/filters/ReferenceFilter.h View 1 2 3 4 5 6 1 chunk +27 lines, -21 lines 0 comments Download
A + Source/core/platform/graphics/filters/ReferenceFilter.cpp View 1 2 3 4 5 6 1 chunk +15 lines, -6 lines 0 comments Download
M Source/core/platform/graphics/filters/SkiaImageFilterBuilder.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -3 lines 0 comments Download
M Source/core/rendering/FilterEffectRenderer.h View 1 2 3 4 5 6 4 chunks +3 lines, -16 lines 0 comments Download
M Source/core/rendering/FilterEffectRenderer.cpp View 1 2 3 4 5 6 7 chunks +18 lines, -78 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 5 chunks +17 lines, -15 lines 0 comments Download
A + Source/core/rendering/svg/ReferenceFilterBuilder.h View 1 2 3 4 5 6 1 chunk +14 lines, -10 lines 0 comments Download
A Source/core/rendering/svg/ReferenceFilterBuilder.cpp View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
achicu
This is a draft patch. Most of the functionality should be covered by existing tests, ...
7 years, 8 months ago (2013-04-10 00:55:20 UTC) #1
Stephen Chennney
Why are the new names "Reference..."? I might be late to the party, but what ...
7 years, 8 months ago (2013-04-10 01:26:51 UTC) #2
Stephen White
https://codereview.chromium.org/13984002/diff/1/Source/WebCore/platform/graphics/filters/FilterOperation.h File Source/WebCore/platform/graphics/filters/FilterOperation.h (right): https://codereview.chromium.org/13984002/diff/1/Source/WebCore/platform/graphics/filters/FilterOperation.h#newcode173 Source/WebCore/platform/graphics/filters/FilterOperation.h:173: ReferenceFilterRenderer* filterRenderer() const { return m_filterRenderer.get(); } This is ...
7 years, 8 months ago (2013-04-10 01:59:43 UTC) #3
achicu
On 2013/04/10 01:26:51, Stephen Chenney wrote: > Why are the new names "Reference..."? I might ...
7 years, 8 months ago (2013-04-10 15:55:22 UTC) #4
achicu
On 2013/04/10 01:59:43, Stephen White wrote: > https://codereview.chromium.org/13984002/diff/1/Source/WebCore/platform/graphics/filters/FilterOperation.h > File Source/WebCore/platform/graphics/filters/FilterOperation.h (right): > > https://codereview.chromium.org/13984002/diff/1/Source/WebCore/platform/graphics/filters/FilterOperation.h#newcode173 ...
7 years, 8 months ago (2013-04-10 17:38:55 UTC) #5
achicu
https://codereview.chromium.org/13984002/diff/7001/Source/WebCore/platform/graphics/filters/skia/SkiaImageFilterBuilder.cpp File Source/WebCore/platform/graphics/filters/skia/SkiaImageFilterBuilder.cpp (right): https://codereview.chromium.org/13984002/diff/7001/Source/WebCore/platform/graphics/filters/skia/SkiaImageFilterBuilder.cpp#newcode201 Source/WebCore/platform/graphics/filters/skia/SkiaImageFilterBuilder.cpp:201: filter.reset(SkiaImageFilterBuilder::build(filterEffect)); I will remove this change. Not needed anymore ...
7 years, 8 months ago (2013-04-10 17:43:49 UTC) #6
achicu
I posted a bug to move the FilterOperations from platform to rendering/style/ folder in WebKit. ...
7 years, 8 months ago (2013-04-10 21:47:42 UTC) #7
Stephen White
https://codereview.chromium.org/13984002/diff/12001/Source/WebCore/rendering/RenderLayer.cpp File Source/WebCore/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/13984002/diff/12001/Source/WebCore/rendering/RenderLayer.cpp#newcode6223 Source/WebCore/rendering/RenderLayer.cpp:6223: ReferenceFilterRenderer::computeFilter(renderer(), referenceOperation); OK, bear with me, I'm trying to ...
7 years, 8 months ago (2013-04-10 22:19:38 UTC) #8
Stephen White
On 2013/04/10 17:38:55, achicu wrote: > On 2013/04/10 01:59:43, Stephen White wrote: > > > ...
7 years, 8 months ago (2013-04-10 22:25:59 UTC) #9
achicu
Ok, let's separate the issues for now. This patch is orthogonal to that change. The ...
7 years, 8 months ago (2013-04-10 23:05:15 UTC) #10
achicu
@Stephen White: Can you please review this patch? I will work on reverting the CachedSVGDocumentReference ...
7 years, 8 months ago (2013-04-16 21:34:34 UTC) #11
achicu
Added https://codereview.chromium.org/13853009 to track the CachedSVGDocumentReference issue.
7 years, 8 months ago (2013-04-16 21:58:17 UTC) #12
achicu
Sorry didn't see the previous review. I will take a look.
7 years, 8 months ago (2013-04-16 22:00:43 UTC) #13
achicu
Thanks the review, I will rework based on the comments and submit again. https://codereview.chromium.org/13984002/diff/12001/Source/WebCore/rendering/RenderLayer.cpp File ...
7 years, 8 months ago (2013-04-16 22:11:16 UTC) #14
achicu
I've updated the patch. Move ReferenceFilter to platform, to avoid all the casts. Also, the ...
7 years, 8 months ago (2013-04-17 00:47:17 UTC) #15
Stephen White
Sorry it took me so long to get to this. This looks great. LGTM. https://codereview.chromium.org/13984002/diff/31001/Source/core/platform/graphics/filters/FilterEffect.cpp ...
7 years, 8 months ago (2013-04-22 20:01:48 UTC) #16
Stephen White
https://codereview.chromium.org/13984002/diff/31001/Source/core/platform/graphics/filters/FilterEffect.h File Source/core/platform/graphics/filters/FilterEffect.h (right): https://codereview.chromium.org/13984002/diff/31001/Source/core/platform/graphics/filters/FilterEffect.h#newcode202 Source/core/platform/graphics/filters/FilterEffect.h:202: typedef Vector<RefPtr<FilterEffect> > FilterEffectList; Nit: is this still used ...
7 years, 8 months ago (2013-04-22 20:10:04 UTC) #17
achicu
On 2013/04/22 20:10:04, Stephen White wrote: > https://codereview.chromium.org/13984002/diff/31001/Source/core/platform/graphics/filters/FilterEffect.h > File Source/core/platform/graphics/filters/FilterEffect.h (right): > > https://codereview.chromium.org/13984002/diff/31001/Source/core/platform/graphics/filters/FilterEffect.h#newcode202 ...
7 years, 8 months ago (2013-04-22 20:19:55 UTC) #18
achicu
On 2013/04/22 20:01:48, Stephen White wrote: > Sorry it took me so long to get ...
7 years, 8 months ago (2013-04-22 20:22:18 UTC) #19
achicu
BTW, can you take a look at https://codereview.chromium.org/13853009/ too? I will need to rebase it ...
7 years, 8 months ago (2013-04-22 20:25:09 UTC) #20
Stephen White
7 years, 8 months ago (2013-04-22 20:25:12 UTC) #21
On 2013/04/22 20:22:18, achicu wrote:

> There will be a follow up patch to setup the rect subregion coordinates
> correctly on the SVG  filters. Currently that part of the SVG filters
referenced
> from CSS is not working.

That would be fantastic.  http://crbug.com/229910 is logged for this on the
blink side.

> I will need to figure out how that is going to work for the Skia composited
> graph too. Is there a way to clip the input of a SkiaFilter to just a part of
> it?

Not yet.  We have plans for it, but haven't gotten to it yet.

Powered by Google App Engine
This is Rietveld 408576698