Index: cc/paint/paint_image.cc |
diff --git a/cc/paint/paint_image.cc b/cc/paint/paint_image.cc |
index 70644ed4c41e773b10152d752dbfd32ac854c7c5..d4e01f740f8d189a48bf74a9f96baccf8f1dacb2 100644 |
--- a/cc/paint/paint_image.cc |
+++ b/cc/paint/paint_image.cc |
@@ -6,12 +6,26 @@ |
namespace cc { |
+PaintImage::PaintImage() = default; |
PaintImage::PaintImage(sk_sp<const SkImage> sk_image, |
AnimationType animation_type, |
CompletionState completion_state) |
: sk_image_(std::move(sk_image)), |
animation_type_(animation_type), |
- completion_state_(completion_state) {} |
+ completion_state_(completion_state) { |
+ DCHECK(sk_image_); |
+} |
+PaintImage::PaintImage(const PaintImage& other) = default; |
+PaintImage::PaintImage(PaintImage&& other) = default; |
PaintImage::~PaintImage() = default; |
+PaintImage& PaintImage::operator=(const PaintImage& other) = default; |
+PaintImage& PaintImage::operator=(PaintImage&& other) = default; |
+ |
+bool PaintImage::operator==(const PaintImage& other) { |
+ return sk_image_ == other.sk_image_ && |
+ animation_type_ == other.animation_type_ && |
+ completion_state_ == other.completion_state_; |
+} |
+ |
} // namespace cc |