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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioParam.h

Issue 2033503004: Avoid slow AudioParam automation path when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioParam.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioParam.h b/third_party/WebKit/Source/modules/webaudio/AudioParam.h
index 42886883ba8d2176a8cc427963411447e8bb5b1b..ebdc00bd821e15d89080d12a2d4fe258da842f96 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioParam.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioParam.h
@@ -139,7 +139,7 @@ public:
// Returns true if smoothed value has already snapped exactly to value.
bool smooth();
- void resetSmoothedValue() { m_smoothedValue = intrinsicValue(); }
+ void resetSmoothedValue() { m_timeline.setSmoothedValue(intrinsicValue()); }
bool hasSampleAccurateValues() { return m_timeline.hasValues() || numberOfRenderingConnections(); }
@@ -181,9 +181,6 @@ private:
float m_minValue;
float m_maxValue;
- // Smoothing (de-zippering)
- float m_smoothedValue;
-
AudioParamTimeline m_timeline;
// The destination node used to get necessary information like the smaple rate and context time.

Powered by Google App Engine
This is Rietveld 408576698