Chromium Code Reviews

Issue 1334173004: Switch SVGFEImage from SkBitmapSource to SkImageSource (Closed)

Created:
5 years, 3 months ago by f(malita)
Modified:
5 years, 3 months ago
Reviewers:
Stephen White, fs, Justin Novosad
CC:
blink-reviews, krit, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, reed1, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Switch SVGFEImage from SkBitmapSource to SkImageSource Use the new SkImage-based SkImageFilter subclass, and stop calling Image::deprecatedBitmapForCurrentFrame(). BUG=449197 R=senorblanco@chromium.org,junov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=202450

Patch Set 1 #

Patch Set 2 : explicit filter quality #

Total comments: 4

Patch Set 3 : avoid null SkImageFilters #

Patch Set 4 : spec compliant + test #

Total comments: 2

Patch Set 5 : fixed-size <svg> #

Unified diffs Side-by-side diffs Stats (+65 lines, -14 lines)
A LayoutTests/svg/filters/feimage-invalid-image.svg View 1 chunk +30 lines, -0 lines 0 comments
A LayoutTests/svg/filters/feimage-invalid-image-expected.svg View 1 chunk +14 lines, -0 lines 0 comments
M Source/core/svg/SVGFEImageElement.cpp View 1 chunk +7 lines, -2 lines 0 comments
M Source/core/svg/graphics/filters/SVGFEImage.cpp View 2 chunks +14 lines, -12 lines 0 comments

Messages

Total messages: 18 (3 generated)
f(malita)
Since we can't instantiate empty SkImages, and to avoid relying on SkBitmapSource + null SkBitmap, ...
5 years, 3 months ago (2015-09-15 14:21:47 UTC) #1
f(malita)
PTAL. Thanks!
5 years, 3 months ago (2015-09-16 18:44:38 UTC) #2
Stephen White
https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp File Source/core/svg/graphics/filters/SVGFEImage.cpp (right): https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp#newcode195 Source/core/svg/graphics/filters/SVGFEImage.cpp:195: return nullptr; I'm concerned about returning nullptr here, since ...
5 years, 3 months ago (2015-09-16 18:51:18 UTC) #3
f(malita)
https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp File Source/core/svg/graphics/filters/SVGFEImage.cpp (right): https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp#newcode195 Source/core/svg/graphics/filters/SVGFEImage.cpp:195: return nullptr; On 2015/09/16 18:51:18, Stephen White wrote: > ...
5 years, 3 months ago (2015-09-16 18:57:36 UTC) #4
f(malita)
https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp File Source/core/svg/graphics/filters/SVGFEImage.cpp (right): https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp#newcode195 Source/core/svg/graphics/filters/SVGFEImage.cpp:195: return nullptr; On 2015/09/16 18:57:36, f(malita) wrote: > On ...
5 years, 3 months ago (2015-09-16 21:14:25 UTC) #5
f(malita)
https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp File Source/core/svg/graphics/filters/SVGFEImage.cpp (right): https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp#newcode195 Source/core/svg/graphics/filters/SVGFEImage.cpp:195: return nullptr; Had an idea: maybe the safest thing ...
5 years, 3 months ago (2015-09-16 21:35:15 UTC) #6
fs
On 2015/09/16 at 21:14:25, fmalita wrote: > https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp > File Source/core/svg/graphics/filters/SVGFEImage.cpp (right): > > https://codereview.chromium.org/1334173004/diff/20001/Source/core/svg/graphics/filters/SVGFEImage.cpp#newcode195 ...
5 years, 3 months ago (2015-09-17 07:40:55 UTC) #7
f(malita)
On 2015/09/17 07:40:55, fs wrote: > On 2015/09/16 at 21:14:25, fmalita wrote: > > > ...
5 years, 3 months ago (2015-09-17 09:55:04 UTC) #8
f(malita)
On 2015/09/17 09:55:04, f(malita) wrote: > Let me see if I can update the CL ...
5 years, 3 months ago (2015-09-17 12:03:52 UTC) #10
fs
lgtm
5 years, 3 months ago (2015-09-17 12:11:12 UTC) #11
Stephen White
On 2015/09/17 09:55:04, f(malita) wrote: > On 2015/09/17 07:40:55, fs wrote: > > On 2015/09/16 ...
5 years, 3 months ago (2015-09-17 13:58:04 UTC) #12
Stephen White
LGTM https://codereview.chromium.org/1334173004/diff/60001/LayoutTests/svg/filters/feimage-invalid-image.svg File LayoutTests/svg/filters/feimage-invalid-image.svg (right): https://codereview.chromium.org/1334173004/diff/60001/LayoutTests/svg/filters/feimage-invalid-image.svg#newcode2 LayoutTests/svg/filters/feimage-invalid-image.svg:2: <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> Nit: suggest we ...
5 years, 3 months ago (2015-09-17 13:58:14 UTC) #13
f(malita)
https://codereview.chromium.org/1334173004/diff/60001/LayoutTests/svg/filters/feimage-invalid-image.svg File LayoutTests/svg/filters/feimage-invalid-image.svg (right): https://codereview.chromium.org/1334173004/diff/60001/LayoutTests/svg/filters/feimage-invalid-image.svg#newcode2 LayoutTests/svg/filters/feimage-invalid-image.svg:2: <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> On 2015/09/17 13:58:14, Stephen ...
5 years, 3 months ago (2015-09-17 15:02:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334173004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334173004/80001
5 years, 3 months ago (2015-09-17 15:02:24 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-09-17 16:40:41 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=202450

Powered by Google App Engine