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

Unified Diff: cc/CCScopedThreadProxy.h

Issue 10947047: Fix remaining cc files to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FakeCCDelayBasedTimeSource Created 8 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
« no previous file with comments | « cc/CCLayerTilingData.cpp ('k') | cc/CCScopedThreadProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScopedThreadProxy.h
diff --git a/cc/CCScopedThreadProxy.h b/cc/CCScopedThreadProxy.h
index 645a2f646c82926ba939eb464ac951c624431ba2..802046dcfa858a6dbe09b4d0896adac1b99f10f3 100644
--- a/cc/CCScopedThreadProxy.h
+++ b/cc/CCScopedThreadProxy.h
@@ -7,6 +7,8 @@
#include "CCThreadTask.h"
#include "base/threading/platform_thread.h"
+#include <wtf/OwnPtr.h>
+#include <wtf/PassOwnPtr.h>
#include <wtf/ThreadSafeRefCounted.h>
namespace cc {
@@ -29,6 +31,8 @@ public:
return adoptRef(new CCScopedThreadProxy(targetThread));
}
+ ~CCScopedThreadProxy();
+
// Can be called from any thread. Posts a task to the target thread that runs unless
// shutdown() is called before it runs.
void postTask(PassOwnPtr<CCThread::Task> task)
@@ -45,9 +49,7 @@ public:
}
private:
- explicit CCScopedThreadProxy(CCThread* targetThread)
- : m_targetThread(targetThread)
- , m_shutdown(false) { }
+ explicit CCScopedThreadProxy(CCThread* targetThread);
void runTaskIfNotShutdown(PassOwnPtr<CCThread::Task> popTask)
{
« no previous file with comments | « cc/CCLayerTilingData.cpp ('k') | cc/CCScopedThreadProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698