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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp

Issue 2641003005: Move MediaKeys timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Move MediaKeys timer to frame-specific TaskRunnerTimer. Created 3 years, 11 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 | « third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp
index 8737ae909138615362efc34ce08b48936223ac25..5c3b653ee78e6abd07af61d68ce440e0382cf49e 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp
@@ -32,6 +32,7 @@
#include "core/dom/DOMException.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/html/HTMLMediaElement.h"
#include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h"
#include "modules/encryptedmedia/EncryptedMediaUtils.h"
@@ -142,7 +143,9 @@ MediaKeys::MediaKeys(
m_cdm(std::move(cdm)),
m_mediaElement(nullptr),
m_reservedForMediaElement(false),
- m_timer(this, &MediaKeys::timerFired) {
+ m_timer(TaskRunnerHelper::get(TaskType::MiscPlatformAPI, context),
+ this,
+ &MediaKeys::timerFired) {
DVLOG(MEDIA_KEYS_LOG_LEVEL) << __func__ << "(" << this << ")";
InstanceCounters::incrementCounter(InstanceCounters::MediaKeysCounter);
}
« no previous file with comments | « third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698