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

Side by Side Diff: cc/thread.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/texture_uploader.h ('k') | cc/thread_impl.h » ('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 CCThread_h 5 #ifndef CCThread_h
6 #define CCThread_h 6 #define CCThread_h
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "cc/cc_export.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 // Thread provides basic infrastructure for messaging with the compositor in a 14 // Thread provides basic infrastructure for messaging with the compositor in a
14 // platform-neutral way. 15 // platform-neutral way.
15 class Thread { 16 class CC_EXPORT Thread {
16 public: 17 public:
17 virtual ~Thread() { } 18 virtual ~Thread() { }
18 19
19 // Executes the callback on context's thread asynchronously. 20 // Executes the callback on context's thread asynchronously.
20 virtual void postTask(base::Closure cb) = 0; 21 virtual void postTask(base::Closure cb) = 0;
21 22
22 // Executes the task after the specified delay. 23 // Executes the task after the specified delay.
23 virtual void postDelayedTask(base::Closure cb, long long delayMs) = 0; 24 virtual void postDelayedTask(base::Closure cb, long long delayMs) = 0;
24 25
25 virtual bool belongsToCurrentThread() const = 0; 26 virtual bool belongsToCurrentThread() const = 0;
26 }; 27 };
27 28
28 } 29 }
29 30
30 #endif 31 #endif
OLDNEW
« no previous file with comments | « cc/texture_uploader.h ('k') | cc/thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698