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

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

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

Powered by Google App Engine
This is Rietveld 408576698