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

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

Issue 364873002: Introduce a basic Blink Scheduler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleaned up includes + build fix. Created 6 years, 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebSchedulerProxy_h
6 #define WebSchedulerProxy_h
7
8 #include "WebThread.h"
9
10 namespace WebCore {
11 class Scheduler;
12 }
13
14 namespace blink {
15
16 class WebSchedulerProxy {
17 public:
18 BLINK_PLATFORM_EXPORT ~WebSchedulerProxy();
19
20 BLINK_PLATFORM_EXPORT static WebSchedulerProxy create();
21
22 // Schedule an input processing task to be run on the blink main thread.
23 // Takes ownership of |Task|. Can be called from any thread.
24 BLINK_PLATFORM_EXPORT void postInputTask(WebThread::Task*);
25
26 // Schedule a compositor task to run on the blink main thread. Takes
27 // ownership of |Task|. Can be called from any thread.
28 BLINK_PLATFORM_EXPORT void postCompositorTask(WebThread::Task*);
29
30 private:
31 WebSchedulerProxy();
32
33 WebCore::Scheduler* m_scheduler;
34 };
35
36 } // namespace blink
37
38 #endif // WebSchedulerProxy_h
OLDNEW
« Source/platform/scheduler/Scheduler.cpp ('K') | « Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698