Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h |
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h b/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h |
| index f163224fca06f3049d5b39b75cd413618ba6ae08..4c33b0e78eeeda8225b1aa522854421990b399b0 100644 |
| --- a/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h |
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.h |
| @@ -127,11 +127,14 @@ class AudioParamTimeline { |
| Type getType() const { return m_type; } |
| float value() const { return m_value; } |
| double time() const { return m_time; } |
| + void setTime(double newTime) { m_time = newTime; } |
| double timeConstant() const { return m_timeConstant; } |
| double duration() const { return m_duration; } |
| Vector<float>& curve() { return m_curve; } |
| float initialValue() const { return m_initialValue; } |
| double callTime() const { return m_callTime; } |
| + bool needsClampCheck() const { return m_needsClampCheck; } |
|
hongchan
2016/10/18 17:34:59
needsTimeClampCheck()
Raymond Toy
2016/10/18 20:33:18
Done.
|
| + void clearClampCheck() { m_needsClampCheck = false; } |
|
hongchan
2016/10/18 17:34:59
clearTimeClampCheck()
Raymond Toy
2016/10/18 20:33:18
Done.
|
| private: |
| ParamEvent(Type type, |
| @@ -155,6 +158,9 @@ class AudioParamTimeline { |
| // have a preceding event. |
| float m_initialValue; |
| double m_callTime; |
| + // True if the start time needs to be checked against current time |
| + // to implement clamping. |
| + bool m_needsClampCheck; |
|
hongchan
2016/10/18 17:34:59
m_needsTimeClampCheck
Raymond Toy
2016/10/18 20:33:18
Done.
|
| }; |
| void insertEvent(const ParamEvent&, ExceptionState&); |