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

Unified Diff: cc/paint/paint_image.cc

Issue 2883593002: Add frame count to paint image. (Closed)
Patch Set: rebase Created 3 years, 6 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 | « cc/paint/paint_image.h ('k') | third_party/WebKit/Source/platform/DragImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_image.cc
diff --git a/cc/paint/paint_image.cc b/cc/paint/paint_image.cc
index 5575cbdad186db3652d9ec787c45b49fff4950c6..a13b972b88bdcb5fd33b5ff6abfa56b98d887f65 100644
--- a/cc/paint/paint_image.cc
+++ b/cc/paint/paint_image.cc
@@ -14,11 +14,13 @@ PaintImage::PaintImage() = default;
PaintImage::PaintImage(Id id,
sk_sp<SkImage> sk_image,
AnimationType animation_type,
- CompletionState completion_state)
+ CompletionState completion_state,
+ size_t frame_count)
: id_(id),
sk_image_(std::move(sk_image)),
animation_type_(animation_type),
- completion_state_(completion_state) {}
+ completion_state_(completion_state),
+ frame_count_(frame_count) {}
PaintImage::PaintImage(const PaintImage& other) = default;
PaintImage::PaintImage(PaintImage&& other) = default;
PaintImage::~PaintImage() = default;
@@ -29,7 +31,8 @@ PaintImage& PaintImage::operator=(PaintImage&& other) = default;
bool PaintImage::operator==(const PaintImage& other) const {
return id_ == other.id_ && sk_image_ == other.sk_image_ &&
animation_type_ == other.animation_type_ &&
- completion_state_ == other.completion_state_;
+ completion_state_ == other.completion_state_ &&
+ frame_count_ == other.frame_count_;
}
PaintImage::Id PaintImage::GetNextId() {
« no previous file with comments | « cc/paint/paint_image.h ('k') | third_party/WebKit/Source/platform/DragImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698