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

Issue 2585233002: Clamp radii in FEMorphology::createImageFilter (Closed)

Created:
4 years ago by fs
Modified:
4 years ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clamp radii in FEMorphology::createImageFilter Sk{Dilate,Erode}ImageFilter::Make take the radii as integers (int), so make sure to convert the float FEMorphology stores avoiding overflow. BUG=675164 Committed: https://crrev.com/84321d8133327259cf7eda6ed5bb19792fe94bda Cr-Commit-Position: refs/heads/master@{#439474}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp View 1 chunk +2 lines, -4 lines 2 comments Download

Messages

Total messages: 20 (10 generated)
fs
4 years ago (2016-12-19 14:01:54 UTC) #5
Stephen Chennney
https://codereview.chromium.org/2585233002/diff/1/third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp File third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp (right): https://codereview.chromium.org/2585233002/diff/1/third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp#newcode96 third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp:96: int radiusY = clampTo<int>(getFilter()->applyVerticalScale(m_radiusY)); Does clampTo<SkScalar> work?
4 years ago (2016-12-19 14:21:14 UTC) #6
fs
https://codereview.chromium.org/2585233002/diff/1/third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp File third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp (right): https://codereview.chromium.org/2585233002/diff/1/third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp#newcode96 third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp:96: int radiusY = clampTo<int>(getFilter()->applyVerticalScale(m_radiusY)); On 2016/12/19 at 14:21:14, Stephen ...
4 years ago (2016-12-19 14:24:00 UTC) #7
Stephen Chennney
On 2016/12/19 14:21:14, Stephen Chennney wrote: > https://codereview.chromium.org/2585233002/diff/1/third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp > File third_party/WebKit/Source/platform/graphics/filters/FEMorphology.cpp > (right): > > ...
4 years ago (2016-12-19 14:32:28 UTC) #8
Stephen Chennney
lgtm
4 years ago (2016-12-19 14:32:36 UTC) #9
Stephen Chennney
lgtm
4 years ago (2016-12-19 14:32:36 UTC) #10
fs
On 2016/12/19 at 14:32:28, schenney wrote: > On 2016/12/19 14:21:14, Stephen Chennney wrote: > > ...
4 years ago (2016-12-19 14:37:05 UTC) #11
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/2585233002/1
4 years ago (2016-12-19 14:51:15 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-19 14:55:56 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-19 14:57:27 UTC) #20
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/84321d8133327259cf7eda6ed5bb19792fe94bda
Cr-Commit-Position: refs/heads/master@{#439474}

Powered by Google App Engine
This is Rietveld 408576698