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

Issue 16112002: Do not clamp y values on internal knots of timing function bezier curves (Closed)

Created:
7 years, 7 months ago by Ian Vollick
Modified:
7 years, 6 months ago
Reviewers:
ajuma
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Do not clamp y values on internal knots of timing function bezier curves Cubic bezier timing functions are based on two knots (x1, y1) and (x2, y2) (the other knots are assumed to be (0, 0) and (1, 1)). We require that x1, x2 lie within (0, 1) (so that the bezier does not 'fold back' on itself), but y1, and y2 should have no such constraint. They currently do. This CL reimplements bezier interpolation without this restriction. This interpolation has two steps: 1) Find the t corresponding to the desired x. 2) Interpolate y's at the t computed in step 1. Step 1 is an iterative minimization. Here I do bisection for simplicity, but I could take Newton steps if this turns out to be a bottleneck. R=ajuma@chromium.org BUG=178070 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202755

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -78 lines) Patch
M cc/animation/timing_function.h View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/animation/timing_function.cc View 1 3 chunks +49 lines, -74 lines 0 comments Download
M cc/animation/timing_function_unittest.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ian Vollick
7 years, 7 months ago (2013-05-27 17:50:11 UTC) #1
ajuma
This is a nice simplification. Please add a TimingFunctionTest where y1 or y2 is not ...
7 years, 7 months ago (2013-05-27 18:10:48 UTC) #2
Ian Vollick
On 2013/05/27 18:10:48, ajuma wrote: > This is a nice simplification. > > Please add ...
7 years, 7 months ago (2013-05-27 18:41:12 UTC) #3
ajuma
On 2013/05/27 18:41:12, vollick wrote: > On 2013/05/27 18:10:48, ajuma wrote: > > This is ...
7 years, 7 months ago (2013-05-27 18:48:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/16112002/4001
7 years, 7 months ago (2013-05-27 18:51:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/16112002/18001
7 years, 6 months ago (2013-05-28 19:04:36 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 02:52:26 UTC) #7
Message was sent while issue was closed.
Change committed as 202755

Powered by Google App Engine
This is Rietveld 408576698