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

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

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from miu@ Created 4 years 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/BaseAudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
index 028ff3e9bb670b6388e9f3fdcf543aca528f0304..2550356661a6b563997a853c035ab88327f72afe 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
@@ -238,7 +238,7 @@ class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData,
void notifySourceNodeFinishedProcessing(AudioHandler*);
// Called at the start of each render quantum.
- void handlePreRenderTasks();
+ void handlePreRenderTasks(const AudioIOPosition& outputPosition);
// Called at the end of each render quantum.
void handlePostRenderTasks();
@@ -346,6 +346,8 @@ class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData,
// Returns whether the AudioContext is allowed to start rendering.
bool isAllowedToStart() const;
+ AudioIOPosition outputPosition();
+
private:
friend class BaseAudioContextTest;
@@ -449,6 +451,7 @@ class MODULES_EXPORT BaseAudioContext : public EventTargetWithInlineData,
enum { MaxNumberOfChannels = 32 };
Optional<AutoplayStatus> m_autoplayStatus;
+ AudioIOPosition m_outputPosition;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698