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

Unified Diff: Source/wtf/DoubleBufferedDeque.h

Issue 595023002: Implement idle task scheduling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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: Source/wtf/DoubleBufferedDeque.h
diff --git a/Source/wtf/DoubleBufferedDeque.h b/Source/wtf/DoubleBufferedDeque.h
index 5343f00c7770b37326eabc4f8e00fe1eb0ced0a7..eacfabf11b017b82424c6e0151e18af79dc53592 100644
--- a/Source/wtf/DoubleBufferedDeque.h
+++ b/Source/wtf/DoubleBufferedDeque.h
@@ -14,10 +14,11 @@ namespace WTF {
template <typename T> class DoubleBufferedDeque {
WTF_MAKE_NONCOPYABLE(DoubleBufferedDeque);
public:
+ typedef typename PassTraits<T>::PassType PassType;
DoubleBufferedDeque()
: m_activeIndex(0) { }
- void append(const T& value)
+ void append(const PassType& value)
Sami 2014/09/24 14:00:40 Is this an optimization to avoid copies or somethi
rmcilroy 2014/09/29 17:42:58 This is required to be able to create a DoubleBuff
{
m_queue[m_activeIndex].append(value);
}
« Source/platform/scheduler/TracedTask.cpp ('K') | « Source/platform/scheduler/TracedTask.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698