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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.h

Issue 2810423003: Schedule bitmap animation timers on the compositor task runner. (Closed)
Patch Set: Fix comment. Created 3 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/platform/graphics/BitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
index 902550e29ff617049b0f37bd35373d9e76fd8536..d73e2a742f8ce622c2ca55a01c7420e6d3dda458 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -192,7 +192,7 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
cached_frame_; // A cached copy of the most recently-accessed frame.
size_t cached_frame_index_; // Index of the frame that is cached.
- std::unique_ptr<Timer<BitmapImage>> frame_timer_;
+ std::unique_ptr<TaskRunnerTimer<BitmapImage>> frame_timer_;
ImageAnimationPolicy
animation_policy_; // Whether or not we can play animation.
@@ -217,6 +217,8 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
// the next call to startAnimation().
size_t frame_count_;
+
+ RefPtr<WebTaskRunner> task_runner_;
};
DEFINE_IMAGE_TYPE_CASTS(BitmapImage);
« no previous file with comments | « third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp ('k') | third_party/WebKit/Source/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698