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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp

Issue 2810423003: Schedule bitmap animation timers on the compositor task runner. (Closed)
Patch Set: fix up comment about a method changed by blink reformat Created 3 years, 8 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/core/svg/SVGFEImageElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
index abcf84b5d9ffd329097126dc00877cfd7d3a08eb..4ebda2cdeccbdadce51bf04d967c55928488b172 100644
--- a/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp
@@ -24,6 +24,7 @@
#include "core/SVGNames.h"
#include "core/dom/Document.h"
#include "core/dom/IdTargetObserver.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/loader/resource/ImageResourceContent.h"
#include "core/svg/SVGPreserveAspectRatio.h"
#include "core/svg/graphics/filters/SVGFEImage.h"
@@ -72,7 +73,11 @@ void SVGFEImageElement::ClearResourceReferences() {
void SVGFEImageElement::FetchImageResource() {
FetchParameters params(
ResourceRequest(GetDocument().CompleteURL(HrefString())), localName());
- cached_image_ = ImageResourceContent::Fetch(params, GetDocument().Fetcher());
+ RefPtr<WebTaskRunner> task_runner =
+ TaskRunnerHelper::Get(TaskType::kAnimationTimer, &GetDocument());
+
+ cached_image_ =
+ ImageResourceContent::Fetch(task_runner, params, GetDocument().Fetcher());
if (cached_image_)
cached_image_->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698