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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 years, 1 month 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/platform/audio/AudioDSPKernelProcessor.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp b/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp
index 42ee47843cc8110f404cb7df1890b238649714e2..2f7025183e872986a5d6be858147c6acfa671ba6 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp
@@ -126,7 +126,7 @@ double AudioDSPKernelProcessor::tailTime() const {
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked()) {
// It is expected that all the kernels have the same tailTime.
- return !m_kernels.isEmpty() ? m_kernels.first()->tailTime() : 0;
+ return !m_kernels.isEmpty() ? m_kernels.front()->tailTime() : 0;
}
// Since we don't want to block the Audio Device thread, we return a large
// value instead of trying to acquire the lock.
@@ -138,7 +138,7 @@ double AudioDSPKernelProcessor::latencyTime() const {
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked()) {
// It is expected that all the kernels have the same latencyTime.
- return !m_kernels.isEmpty() ? m_kernels.first()->latencyTime() : 0;
+ return !m_kernels.isEmpty() ? m_kernels.front()->latencyTime() : 0;
}
// Since we don't want to block the Audio Device thread, we return a large
// value instead of trying to acquire the lock.

Powered by Google App Engine
This is Rietveld 408576698