| 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; }
|
|
|
|
|