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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 2649783002: Move CanvasRenderingContext2D timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Move CanvasRenderingContext2D timer to frame-specific TaskRunnerTimer. Created 3 years, 10 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/canvas2d/CanvasRenderingContext2D.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/canvas2d/CanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
index 4e4b03d57b76e2eaa37d547fa080893c4da341d3..007a8fc475a84e2293d9e96898bb2dc387e8d647 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -41,6 +41,7 @@
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/AXObjectCache.h"
#include "core/dom/StyleEngine.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/events/MouseEvent.h"
#include "core/frame/Settings.h"
@@ -118,12 +119,18 @@ CanvasRenderingContext2D::CanvasRenderingContext2D(
m_contextRestorable(true),
m_tryRestoreContextAttemptCount(0),
m_dispatchContextLostEventTimer(
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
+ canvas->document().frame()),
this,
&CanvasRenderingContext2D::dispatchContextLostEvent),
m_dispatchContextRestoredEventTimer(
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
+ canvas->document().frame()),
this,
&CanvasRenderingContext2D::dispatchContextRestoredEvent),
m_tryRestoreContextEventTimer(
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
+ canvas->document().frame()),
this,
&CanvasRenderingContext2D::tryRestoreContextEvent),
m_pruneLocalFontCacheScheduled(false) {
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698