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

Unified Diff: public/platform/Platform.h

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . 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
« no previous file with comments | « Source/web/WebWorkerRunLoop.cpp ('k') | public/platform/WebLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 907e1a7581362b7a83fc8c92162294ccc5838679..43d0cfc9782b59a3a419e1f1d25486ec04dfcc4b 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -352,7 +352,7 @@ public:
// Threads -------------------------------------------------------
// Creates an embedder-defined thread.
- virtual WebThread* createThread(const char* name) { return 0; }
+ virtual WebThread* createThread(const char* name, bool isCompositorThread = false) { return 0; }
// Returns an interface to the current thread. This is owned by the
// embedder.
@@ -361,6 +361,11 @@ public:
// Yield the current thread so another thread can be scheduled.
virtual void yieldCurrentThread() { }
+ // Returns an interface to the compositor thread associated with the current
+ // thread, if there is one. It is an error to associate multiple compositor
+ // threads with a single renderer.
+ virtual WebThread* currentCompositorThread() { return 0; }
+
// May return null.
virtual WebScheduler* scheduler() { return 0; }
« no previous file with comments | « Source/web/WebWorkerRunLoop.cpp ('k') | public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698