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

Side by Side Diff: webkit/compositor_bindings/ccthread_impl.h

Issue 11344004: Remove WebKit::Platform dependencies from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix webkit_compositor_bindings_unittests Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/timer_unittest.cc ('k') | webkit/compositor_bindings/ccthread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_ptr.h"
6 #include "base/threading/platform_thread.h"
7 #include "cc/thread.h"
8 #include <wtf/OwnPtr.h>
9 #include <wtf/PassOwnPtr.h>
10
11 #ifndef CCThreadImpl_h
12 #define CCThreadImpl_h
13
14 namespace WebKit {
15
16 class WebThread;
17
18 // Implements Thread in terms of WebThread.
19 class CCThreadImpl : public cc::Thread {
20 public:
21 // Creates a CCThreadImpl wrapping the current thread.
22 static scoped_ptr<cc::Thread> createForCurrentThread();
23
24 // Creates a Thread wrapping a non-current WebThread.
25 static scoped_ptr<cc::Thread> createForDifferentThread(WebThread*);
26
27 virtual ~CCThreadImpl();
28 virtual void postTask(PassOwnPtr<cc::Thread::Task>);
29 virtual void postDelayedTask(PassOwnPtr<cc::Thread::Task>, long long delayMs );
30 base::PlatformThreadId threadID() const;
31
32 private:
33 CCThreadImpl(WebThread*, bool currentThread);
34
35 WebThread* m_thread;
36 base::PlatformThreadId m_threadID;
37 };
38
39 } // namespace WebKit
40
41 #endif
OLDNEW
« no previous file with comments | « cc/timer_unittest.cc ('k') | webkit/compositor_bindings/ccthread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698