Chromium Code Reviews| Index: cc/paint/paint_image.h |
| diff --git a/cc/paint/paint_image.h b/cc/paint/paint_image.h |
| index f6a3587bed23d7d57b4a438f0ebca43e6038ead7..1065763ee67ac425f531edef746517b80a072685 100644 |
| --- a/cc/paint/paint_image.h |
| +++ b/cc/paint/paint_image.h |
| @@ -45,7 +45,8 @@ class CC_PAINT_EXPORT PaintImage { |
| sk_sp<SkImage> sk_image, |
| AnimationType animation_type = AnimationType::STATIC, |
| CompletionState completion_state = CompletionState::DONE, |
| - size_t frame_count = 0); |
| + size_t frame_count = 0, |
| + bool is_multi_part = false); |
| PaintImage(const PaintImage& other); |
| PaintImage(PaintImage&& other); |
| ~PaintImage(); |
| @@ -61,6 +62,7 @@ class CC_PAINT_EXPORT PaintImage { |
| AnimationType animation_type() const { return animation_type_; } |
| CompletionState completion_state() const { return completion_state_; } |
| size_t frame_count() const { return frame_count_; } |
| + bool is_multi_part() const { return is_multi_part_; } |
| private: |
| Id id_ = kUnknownStableId; |
| @@ -71,6 +73,9 @@ class CC_PAINT_EXPORT PaintImage { |
| // loaded). 0 indicates either unknown or only a single frame, both of which |
| // should be treated similarly. |
| size_t frame_count_ = 0; |
| + |
| + // Whether the data fetched for this image is a part of a multpart response. |
| + bool is_multi_part_ = false; |
|
vmpstr
2017/06/16 17:35:36
nit: should this be is_multipart_?
Khushal
2017/06/16 18:26:32
Done.
|
| }; |
| } // namespace cc |