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

Side by Side Diff: ui/gfx/geometry/steps.h

Issue 140253013: Define accelerated steps time function. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new patch Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 Samsung. All rights reserved.
ajuma 2014/02/24 21:11:16 I believe this should be "The Chromium Authors" (s
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_GEOMETRY_STEPS_H_
6 #define UI_GFX_GEOMETRY_STEPS_H_
7
8 #include "base/macros.h"
9 #include "ui/gfx/gfx_export.h"
10
11 namespace gfx {
12
13 class GFX_EXPORT Steps {
14 public:
15 Steps(int steps, bool steps_at_start);
16 ~Steps();
17
18 // Returns y at the given x.
19 double Solve(double x) const;
20
21 // Sets |min| and |max| to the bezier's minimum and maximium y values in the
ajuma 2014/02/24 21:11:16 s/bezier/step function/
22 // interval [0, 1].
23 void Range(double* min, double* max) const;
24
25 private:
26 int steps_;
27 bool steps_at_start_;
28
29 DISALLOW_ASSIGN(Steps);
30 };
31
32 } // namespace gfx
33
34 #endif // UI_GFX_GEOMETRY_STEPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698