| Index: cc/paint/paint_image.h
|
| diff --git a/cc/paint/paint_image.h b/cc/paint/paint_image.h
|
| index 0ed1edd7a768e1467ac79cdc4132a648f38e2b0c..f2198edc9fa747b955e85b465197e12bdf475d18 100644
|
| --- a/cc/paint/paint_image.h
|
| +++ b/cc/paint/paint_image.h
|
| @@ -5,8 +5,8 @@
|
| #ifndef CC_PAINT_PAINT_IMAGE_H_
|
| #define CC_PAINT_PAINT_IMAGE_H_
|
|
|
| +#include "base/logging.h"
|
| #include "cc/paint/paint_export.h"
|
| -
|
| #include "third_party/skia/include/core/SkImage.h"
|
|
|
| namespace cc {
|
| @@ -20,19 +20,27 @@ class CC_PAINT_EXPORT PaintImage {
|
| // TODO(vmpstr): Work towards removing "UNKNOWN" value.
|
| enum class CompletionState { UNKNOWN, DONE, PARTIALLY_DONE };
|
|
|
| + PaintImage();
|
| PaintImage(sk_sp<const SkImage> sk_image,
|
| AnimationType animation_type,
|
| CompletionState completion_state);
|
| + PaintImage(const PaintImage& other);
|
| + PaintImage(PaintImage&& other);
|
| ~PaintImage();
|
|
|
| + PaintImage& operator=(const PaintImage& other);
|
| + PaintImage& operator=(PaintImage&& other);
|
| +
|
| + bool operator==(const PaintImage& other);
|
| +
|
| const sk_sp<const SkImage>& sk_image() const { return sk_image_; }
|
| AnimationType animation_type() const { return animation_type_; }
|
| CompletionState completion_state() const { return completion_state_; }
|
|
|
| private:
|
| sk_sp<const SkImage> sk_image_;
|
| - AnimationType animation_type_;
|
| - CompletionState completion_state_;
|
| + AnimationType animation_type_ = AnimationType::UNKNOWN;
|
| + CompletionState completion_state_ = CompletionState::UNKNOWN;
|
| };
|
|
|
| } // namespace cc
|
|
|