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

Unified Diff: public/platform/WebSchedulerProxy.h

Issue 364873002: Introduce a basic Blink Scheduler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Build fix for old gcc. 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 side-by-side diff with in-line comments
Download patch
« Source/platform/scheduler/SchedulerTest.cpp ('K') | « Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebSchedulerProxy.h
diff --git a/public/web/WebArrayBufferConverter.h b/public/platform/WebSchedulerProxy.h
similarity index 67%
copy from public/web/WebArrayBufferConverter.h
copy to public/platform/WebSchedulerProxy.h
index 1b8eea6aa5750a0d00785650244ab4c31c659732..c8d5fd35affc315346c39af652e39cf19f846f6e 100644
--- a/public/web/WebArrayBufferConverter.h
+++ b/public/platform/WebSchedulerProxy.h
@@ -28,26 +28,37 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebArrayBufferConverter_h
-#define WebArrayBufferConverter_h
+#ifndef WebSchedulerProxy_h
+#define WebSchedulerProxy_h
-#include "public/platform/WebArrayBuffer.h"
+#include "WebThread.h"
-namespace v8 {
-class Isolate;
-class Object;
-class Value;
-template <class T> class Handle;
+namespace WebCore {
+class Scheduler;
}
namespace blink {
-class WebArrayBufferConverter {
+class WebSchedulerProxy {
public:
- BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*, v8::Handle<v8::Object>, v8::Isolate*);
- BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>, v8::Isolate*);
+ BLINK_PLATFORM_EXPORT ~WebSchedulerProxy();
+
+ BLINK_PLATFORM_EXPORT static WebSchedulerProxy create();
+
+ // Schedule an input processing task to be run on the blink main thread.
+ // Takes ownership of |Task|. Can be called from any thread.
+ BLINK_PLATFORM_EXPORT void postInputTask(WebThread::Task*);
+
+ // Schedule a compositor task to run on the blink main thread. Takes
+ // ownership of |Task|. Can be called from any thread.
+ BLINK_PLATFORM_EXPORT void postCompositorTask(WebThread::Task*);
+
+private:
+ WebSchedulerProxy();
+
+ WebCore::Scheduler* m_scheduler;
};
} // namespace blink
-#endif // WebArrayBufferConverter_h
+#endif // WebSchedulerProxy_h
« Source/platform/scheduler/SchedulerTest.cpp ('K') | « Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698