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

Issue 1240023002: Add fast normalize for SkLightingImageFilter. (Closed)

Created:
5 years, 5 months ago by jvanverth1
Modified:
5 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add fast normalize for SkLightingImageFilter. The normalize routine in SkPoint3 is very robust. However, for simple lighting cases we prefer speed over robustness. This fixes a perf regression in smoothness.tough_filters_cases. BUG=chromium:510562 Committed: https://skia.googlesource.com/skia/+/dfa0ecf169db87f7afddd93bc1c500de481a62c7

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M src/effects/SkLightingImageFilter.cpp View 1 7 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
jvanverth1
5 years, 5 months ago (2015-07-16 19:13:21 UTC) #2
Stephen White
LGTM, but will leave for Mike.
5 years, 5 months ago (2015-07-16 19:14:45 UTC) #4
reed1
lgtm w/ nits https://codereview.chromium.org/1240023002/diff/1/src/effects/SkLightingImageFilter.cpp File src/effects/SkLightingImageFilter.cpp (right): https://codereview.chromium.org/1240023002/diff/1/src/effects/SkLightingImageFilter.cpp#newcode63 src/effects/SkLightingImageFilter.cpp:63: inline void fast_normalize(SkPoint3* vector) { static ...
5 years, 5 months ago (2015-07-16 19:44:50 UTC) #5
jvanverth1
https://codereview.chromium.org/1240023002/diff/1/src/effects/SkLightingImageFilter.cpp File src/effects/SkLightingImageFilter.cpp (right): https://codereview.chromium.org/1240023002/diff/1/src/effects/SkLightingImageFilter.cpp#newcode63 src/effects/SkLightingImageFilter.cpp:63: inline void fast_normalize(SkPoint3* vector) { On 2015/07/16 19:44:50, reed1 ...
5 years, 5 months ago (2015-07-16 19:47:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240023002/20001
5 years, 5 months ago (2015-07-16 19:48:20 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/dfa0ecf169db87f7afddd93bc1c500de481a62c7
5 years, 5 months ago (2015-07-16 19:56:49 UTC) #10
reed2
5 years, 5 months ago (2015-07-16 23:02:20 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1244523002/ by reed@chromium.org.

The reason for reverting is: Speculative revert -- DEPS roll block on
linux_blink_rel

https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/....

Powered by Google App Engine
This is Rietveld 408576698