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

Side by Side Diff: public/platform/WebSchedulerProxy.h

Issue 462843003: Cleanup namespace usage in public/platform/{Web[P-W]*,linux/*}.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « public/platform/WebRect.h ('k') | public/platform/WebScrollOffsetAnimationCurve.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebSchedulerProxy_h 5 #ifndef WebSchedulerProxy_h
6 #define WebSchedulerProxy_h 6 #define WebSchedulerProxy_h
7 7
8 #include "WebThread.h" 8 #include "WebThread.h"
9 9
10 namespace blink { 10 namespace blink {
11
11 class Scheduler; 12 class Scheduler;
12 }
13
14 namespace blink {
15
16 class WebTraceLocation; 13 class WebTraceLocation;
17 14
18 // This class is used to submit tasks to Blink's main thread scheduler. 15 // This class is used to submit tasks to Blink's main thread scheduler.
19 class WebSchedulerProxy { 16 class WebSchedulerProxy {
20 public: 17 public:
21 BLINK_PLATFORM_EXPORT ~WebSchedulerProxy(); 18 BLINK_PLATFORM_EXPORT ~WebSchedulerProxy();
22 19
23 BLINK_PLATFORM_EXPORT static WebSchedulerProxy create(); 20 BLINK_PLATFORM_EXPORT static WebSchedulerProxy create();
24 21
25 // Schedule an input processing task to be run on the Blink main thread. 22 // Schedule an input processing task to be run on the Blink main thread.
26 // Takes ownership of |Task|. Can be called from any thread. 23 // Takes ownership of |Task|. Can be called from any thread.
27 BLINK_PLATFORM_EXPORT void postInputTask(const WebTraceLocation&, WebThread: :Task*); 24 BLINK_PLATFORM_EXPORT void postInputTask(const WebTraceLocation&, WebThread: :Task*);
28 25
29 // Schedule a compositor task to run on the Blink main thread. Takes 26 // Schedule a compositor task to run on the Blink main thread. Takes
30 // ownership of |Task|. Can be called from any thread. 27 // ownership of |Task|. Can be called from any thread.
31 BLINK_PLATFORM_EXPORT void postCompositorTask(const WebTraceLocation&, WebTh read::Task*); 28 BLINK_PLATFORM_EXPORT void postCompositorTask(const WebTraceLocation&, WebTh read::Task*);
32 29
33 private: 30 private:
34 WebSchedulerProxy(); 31 WebSchedulerProxy();
35 32
36 blink::Scheduler* m_scheduler; 33 Scheduler* m_scheduler;
37 }; 34 };
38 35
39 } // namespace blink 36 } // namespace blink
40 37
41 #endif // WebSchedulerProxy_h 38 #endif // WebSchedulerProxy_h
OLDNEW
« no previous file with comments | « public/platform/WebRect.h ('k') | public/platform/WebScrollOffsetAnimationCurve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698