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

Unified Diff: Source/wtf/DoubleBufferedDeque.h

Issue 595023002: Implement idle task scheduling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Change function names. 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
« Source/platform/scheduler/Scheduler.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
m_queue[m_activeIndex].append(value);
}
« Source/platform/scheduler/Scheduler.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698