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

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

Issue 2810423003: Schedule bitmap animation timers on the compositor task runner. (Closed)
Patch Set: remove TODO comments from tests 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/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 4ee77dc5dd1ca98b323682b8e4b623957b784bda..90bd353aa33c67e88e204ca2571cfc64de8287fb 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_;
int repetition_count_; // How many total animation loops we should do. This
// will be cAnimationNone if this image type is
// incapable of animation.
@@ -215,6 +215,8 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
bool size_available_ : 1; // Whether we can obtain the size of the first
// image frame from ImageIO yet.
mutable bool have_frame_count_ : 1;
+
+ RefPtr<WebTaskRunner> task_runner_;
};
DEFINE_IMAGE_TYPE_CASTS(BitmapImage);

Powered by Google App Engine
This is Rietveld 408576698