| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #ifndef CCThreadTask_h | 4 #ifndef CCThreadTask_h |
| 5 #define CCThreadTask_h | 5 #define CCThreadTask_h |
| 6 | 6 |
| 7 #include "CCThread.h" | 7 #include "CCThread.h" |
| 8 #include <wtf/PassOwnPtr.h> | 8 #include <wtf/PassOwnPtr.h> |
| 9 #include <wtf/PassRefPtr.h> | 9 #include <wtf/PassRefPtr.h> |
| 10 | 10 |
| 11 namespace WebCore { | 11 namespace cc { |
| 12 | 12 |
| 13 template<typename T> | 13 template<typename T> |
| 14 class CCThreadTask0 : public CCThread::Task { | 14 class CCThreadTask0 : public CCThread::Task { |
| 15 public: | 15 public: |
| 16 typedef void (T::*Method)(); | 16 typedef void (T::*Method)(); |
| 17 typedef CCThreadTask0<T> CCThreadTaskImpl; | 17 typedef CCThreadTask0<T> CCThreadTaskImpl; |
| 18 | 18 |
| 19 static PassOwnPtr<CCThreadTaskImpl> create(T* instance, Method method) | 19 static PassOwnPtr<CCThreadTaskImpl> create(T* instance, Method method) |
| 20 { | 20 { |
| 21 return adoptPtr(new CCThreadTaskImpl(instance, method)); | 21 return adoptPtr(new CCThreadTaskImpl(instance, method)); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 callee, | 293 callee, |
| 294 method, | 294 method, |
| 295 parameter1, | 295 parameter1, |
| 296 parameter2, | 296 parameter2, |
| 297 parameter3, | 297 parameter3, |
| 298 parameter4, | 298 parameter4, |
| 299 parameter5); | 299 parameter5); |
| 300 | 300 |
| 301 } | 301 } |
| 302 | 302 |
| 303 } // namespace WebCore | 303 } // namespace cc |
| 304 | 304 |
| 305 #endif // CCThreadTask_h | 305 #endif // CCThreadTask_h |
| OLD | NEW |