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

Unified Diff: cc/paint/paint_image.h

Issue 2939243002: cc/blink: Veto checker-imaging for multipart image resources. (Closed)
Patch Set: tested 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 | « no previous file | cc/paint/paint_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_image.h
diff --git a/cc/paint/paint_image.h b/cc/paint/paint_image.h
index f6a3587bed23d7d57b4a438f0ebca43e6038ead7..c8b5d60a7af6e016defef3ea818ae297c14b3c9c 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_multipart = 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_multipart() const { return is_multipart_; }
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_multipart_ = false;
};
} // namespace cc
« no previous file with comments | « no previous file | cc/paint/paint_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698