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

Issue 1846733003: UI GFX Geometry: Make UnitBezier a wrapper for gfx::CubicBezier (Closed)

Created:
4 years, 8 months ago by loyso (OOO)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, darktears, blink-reviews, kinuko+watch, cc-bugs_chromium.org, Eric Willigers, jbroman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

UI GFX Geometry: Make UnitBezier a wrapper for gfx::CubicBezier blink::UnitBezier is a superset for gfx::CubicBezier. (see previous preparations: http://crrev.com/1819783002) 1) Move UnitBezier.cpp/h implementation to cubic_bezier.cc/h. 2) Re-implement blink::UnitBezier as a thin inline wrapper for gfx::CubicBezier. 3) Merge missing UnitBezier unit tests into cubic_bezier_unittest.cc BUG=577016 Committed: https://crrev.com/5ca4480095fe6660018edc298fdc922dc1b6a9e5 Cr-Commit-Position: refs/heads/master@{#385090}

Patch Set 1 #

Patch Set 2 : Try to fix windows MSVC linking. #

Patch Set 3 : Do not use public static member variable. #

Patch Set 4 : Rename it. #

Total comments: 9

Patch Set 5 : Move method from header to .cc #

Patch Set 6 : Rename members. Get rid of GetDefaultEpsilon. #

Total comments: 8

Patch Set 7 : Slope must clamp input x to [0, 1] range. #

Patch Set 8 : Add one more TODO for Range. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -576 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/animation/UnitBezier.h View 1 2 3 4 5 6 1 chunk +15 lines, -135 lines 0 comments Download
D third_party/WebKit/Source/platform/animation/UnitBezier.cpp View 1 chunk +0 lines, -113 lines 0 comments Download
D third_party/WebKit/Source/platform/animation/UnitBezierTest.cpp View 1 chunk +0 lines, -192 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 2 chunks +0 lines, -2 lines 0 comments Download
M ui/gfx/geometry/cubic_bezier.h View 1 2 3 4 5 6 7 1 chunk +55 lines, -10 lines 0 comments Download
M ui/gfx/geometry/cubic_bezier.cc View 1 2 3 4 5 6 2 chunks +129 lines, -109 lines 0 comments Download
M ui/gfx/geometry/cubic_bezier_unittest.cc View 1 2 3 4 5 6 4 chunks +34 lines, -15 lines 0 comments Download

Messages

Total messages: 39 (11 generated)
loyso (OOO)
4 years, 8 months ago (2016-03-31 05:15:18 UTC) #3
danakj
Why not just use the gfx type directly everywhere then?
4 years, 8 months ago (2016-03-31 18:59:44 UTC) #9
loyso (OOO)
On 2016/03/31 18:59:44, danakj wrote: > Why not just use the gfx type directly everywhere ...
4 years, 8 months ago (2016-03-31 22:53:32 UTC) #10
danakj
On Thu, Mar 31, 2016 at 3:53 PM, <loyso@chromium.org> wrote: > On 2016/03/31 18:59:44, danakj ...
4 years, 8 months ago (2016-03-31 23:01:50 UTC) #11
danakj
On Thu, Mar 31, 2016 at 3:53 PM, <loyso@chromium.org> wrote: > On 2016/03/31 18:59:44, danakj ...
4 years, 8 months ago (2016-03-31 23:08:20 UTC) #12
loyso (OOO)
On 2016/03/31 23:08:20, danakj wrote: > On Thu, Mar 31, 2016 at 3:53 PM, <mailto:loyso@chromium.org> ...
4 years, 8 months ago (2016-04-01 00:49:05 UTC) #13
danakj
On Thu, Mar 31, 2016 at 5:49 PM, <loyso@chromium.org> wrote: > On 2016/03/31 23:08:20, danakj ...
4 years, 8 months ago (2016-04-01 01:04:35 UTC) #14
danakj
On Thu, Mar 31, 2016 at 5:49 PM, <loyso@chromium.org> wrote: > On 2016/03/31 23:08:20, danakj ...
4 years, 8 months ago (2016-04-01 01:04:35 UTC) #15
esprehn
I think long term we'd like to share the implementations with ui/gfx. The rule about ...
4 years, 8 months ago (2016-04-01 01:16:00 UTC) #16
danakj
> I think long term we'd like to share the implementations with ui/gfx. The rule ...
4 years, 8 months ago (2016-04-01 01:35:59 UTC) #17
loyso (OOO)
> So ya in this case, I'd like to see us DEPS +ui/gfx/geometry/cubic_bezier.h in WebKit/ ...
4 years, 8 months ago (2016-04-01 02:58:04 UTC) #18
esprehn
Yes please do it in steps. -- You received this message because you are subscribed ...
4 years, 8 months ago (2016-04-01 03:38:58 UTC) #19
esprehn
Yes please do it in steps. -- You received this message because you are subscribed ...
4 years, 8 months ago (2016-04-01 03:44:46 UTC) #20
loyso (OOO)
https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h File ui/gfx/geometry/cubic_bezier.h (right): https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h#newcode39 ui/gfx/geometry/cubic_bezier.h:39: double SolveCurveX(double x, double epsilon) const { On 2016/04/01 ...
4 years, 8 months ago (2016-04-01 04:40:06 UTC) #21
danakj
LGTM % vollick https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h File ui/gfx/geometry/cubic_bezier.h (right): https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h#newcode111 ui/gfx/geometry/cubic_bezier.h:111: void Range(double* min, double* max) const ...
4 years, 8 months ago (2016-04-01 19:26:18 UTC) #22
Ian Vollick
On 2016/04/01 19:26:18, danakj wrote: > LGTM % vollick > > https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h > File ui/gfx/geometry/cubic_bezier.h ...
4 years, 8 months ago (2016-04-01 19:33:22 UTC) #23
danakj
https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h File ui/gfx/geometry/cubic_bezier.h (right): https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h#newcode111 ui/gfx/geometry/cubic_bezier.h:111: void Range(double* min, double* max) const { On 2016/04/01 ...
4 years, 8 months ago (2016-04-01 19:54:33 UTC) #24
loyso (OOO)
https://codereview.chromium.org/1846733003/diff/100001/third_party/WebKit/Source/platform/animation/UnitBezier.h File third_party/WebKit/Source/platform/animation/UnitBezier.h (right): https://codereview.chromium.org/1846733003/diff/100001/third_party/WebKit/Source/platform/animation/UnitBezier.h#newcode13 third_party/WebKit/Source/platform/animation/UnitBezier.h:13: struct UnitBezier { On 2016/04/01 19:26:17, danakj wrote: > ...
4 years, 8 months ago (2016-04-04 02:25:29 UTC) #25
loyso (OOO)
Should we move ClampToRange from cc to gfx/geometry?
4 years, 8 months ago (2016-04-04 02:39:12 UTC) #26
loyso (OOO)
https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h File ui/gfx/geometry/cubic_bezier.h (right): https://codereview.chromium.org/1846733003/diff/60001/ui/gfx/geometry/cubic_bezier.h#newcode111 ui/gfx/geometry/cubic_bezier.h:111: void Range(double* min, double* max) const { On 2016/04/01 ...
4 years, 8 months ago (2016-04-04 03:39:58 UTC) #27
danakj
On Sun, Apr 3, 2016 at 7:39 PM, <loyso@chromium.org> wrote: > Should we move ClampToRange ...
4 years, 8 months ago (2016-04-04 19:58:21 UTC) #28
danakj
On Sun, Apr 3, 2016 at 7:39 PM, <loyso@chromium.org> wrote: > Should we move ClampToRange ...
4 years, 8 months ago (2016-04-04 20:04:19 UTC) #29
loyso (OOO)
On 2016/04/04 20:04:19, danakj wrote: > Is it needed outside of cc? Well, I need ...
4 years, 8 months ago (2016-04-05 00:07:16 UTC) #30
danakj
On 2016/04/05 00:07:16, loyso wrote: > On 2016/04/04 20:04:19, danakj wrote: > > Is it ...
4 years, 8 months ago (2016-04-05 00:37:19 UTC) #31
loyso (OOO)
On 2016/04/05 00:37:19, danakj wrote: > Ah I see. There's 2 callers in cc now, ...
4 years, 8 months ago (2016-04-05 01:24:19 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846733003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846733003/140001
4 years, 8 months ago (2016-04-05 01:32:46 UTC) #35
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-05 02:39:12 UTC) #37
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 02:40:17 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5ca4480095fe6660018edc298fdc922dc1b6a9e5
Cr-Commit-Position: refs/heads/master@{#385090}

Powered by Google App Engine
This is Rietveld 408576698