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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp

Issue 1955693003: compositor-worker: Keep worker backing thread alive for the lifetime of the compositor thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
index 3eefc6ac2809d657c9ed86b7a22aaaa1ff712249..73b3fa2f5d441616eb00aa0d60b8e1c5b0806fbc 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
@@ -10,6 +10,7 @@
#include "core/workers/WorkerClients.h"
#include "modules/EventTargetModules.h"
#include "modules/compositorworker/CompositorWorkerMessagingProxy.h"
+#include "modules/compositorworker/CompositorWorkerThread.h"
namespace blink {
@@ -20,6 +21,9 @@ inline CompositorWorker::CompositorWorker(ExecutionContext* context)
CompositorWorker* CompositorWorker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState)
{
+ // Ensure the compositor worker backing thread is ready.
+ CompositorWorkerThread::ensureSharedBackingThread();
haraken 2016/05/09 02:00:53 Move this just before worker->initialize? At least
flackr 2016/05/10 18:07:39 Unless I'm mistaken, we have to ensure the shared
+
ASSERT(isMainThread());
Document* document = toDocument(context);
if (!document->page()) {

Powered by Google App Engine
This is Rietveld 408576698