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

Unified Diff: public/platform/Platform.h

Issue 656463004: Use the scheduling mechanism provided by the platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bad upload. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index c319e30c3ab10f33258b52f0ef4015c0d13169d6..13a33491ac394f067e08928574379b752c827ed0 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -92,6 +92,7 @@ class WebPublicSuffixList;
class WebRTCPeerConnectionHandler;
class WebRTCPeerConnectionHandlerClient;
class WebSandboxSupport;
+class WebScheduler;
class WebSecurityOrigin;
class WebScrollbarBehavior;
class WebSocketHandle;
@@ -360,6 +361,8 @@ public:
// Yield the current thread so another thread can be scheduled.
virtual void yieldCurrentThread() { }
+ // May return null.
+ virtual WebScheduler* scheduler() { return 0; }
// WaitableEvent -------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698