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

Side by Side Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 2253813002: Use ParentFrameTaskRunners for encodeImageOnEncoderThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 m_mainScriptLoader->originTrialTokens(), 437 m_mainScriptLoader->originTrialTokens(),
438 std::move(workerSettings), 438 std::move(workerSettings),
439 static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions)); 439 static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions));
440 440
441 m_mainScriptLoader.clear(); 441 m_mainScriptLoader.clear();
442 442
443 // We have a dummy document here for loading but it doesn't really represent 443 // We have a dummy document here for loading but it doesn't really represent
444 // the document/frame of associated document(s) for this worker. Here we 444 // the document/frame of associated document(s) for this worker. Here we
445 // populate the task runners with null document not to confuse the frame 445 // populate the task runners with null document not to confuse the frame
446 // scheduler (which will end up using the thread's default task runner). 446 // scheduler (which will end up using the thread's default task runner).
447 m_mainThreadTaskRunners = new ParentFrameTaskRunners(nullptr); 447 m_mainThreadTaskRunners = ParentFrameTaskRunners::create(nullptr);
448 448
449 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc ument, *m_workerContextClient); 449 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc ument, *m_workerContextClient);
450 m_loaderProxy = WorkerLoaderProxy::create(this); 450 m_loaderProxy = WorkerLoaderProxy::create(this);
451 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS copeProxy); 451 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS copeProxy);
452 m_workerThread->start(std::move(startupData)); 452 m_workerThread->start(std::move(startupData));
453 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), scriptURL); 453 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), scriptURL);
454 } 454 }
455 455
456 } // namespace blink 456 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698