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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1449953002: compositor-worker: Refactor CompositorWorkerManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 9924046c06274895a68b8c075cf0e06005fa1ab5..589dcf5505653c52b970c1a9c5508ed480ee21b4 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -354,6 +354,7 @@ public:
// Creates an embedder-defined thread.
virtual WebThread* createThread(const char* name) { return nullptr; }
+ virtual WebThread* createThreadForCompositor(const char* name) { return nullptr; }
// Returns an interface to the current thread. This is owned by the
// embedder.
@@ -434,6 +435,8 @@ public:
// Returns an interface to the main thread. Can be null if blink was initialized on a thread without a message loop.
BLINK_PLATFORM_EXPORT WebThread* mainThread() const;
+ virtual WebThread* compositorThread() const { return 0; }
+
// Vibration -----------------------------------------------------------
// Starts a vibration for the given duration in milliseconds. If there is currently an active

Powered by Google App Engine
This is Rietveld 408576698