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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.cpp

Issue 2939243002: cc/blink: Veto checker-imaging for multipart image resources. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/platform/graphics/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index d930750d1e5a688a23af043f0892e03b0f66f83d..5e20d9f6b84b8d15c96999a8af45f4a2d6a4dc84 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -51,10 +51,11 @@
namespace blink {
-Image::Image(ImageObserver* observer)
+Image::Image(ImageObserver* observer, bool is_multi_part)
: image_observer_disabled_(false),
image_observer_(observer),
- stable_image_id_(PaintImage::GetNextId()) {}
+ stable_image_id_(PaintImage::GetNextId()),
+ is_multi_part_(is_multi_part) {}
Image::~Image() {}
@@ -350,7 +351,7 @@ PaintImage Image::PaintImageForCurrentFrame() {
? PaintImage::CompletionState::DONE
: PaintImage::CompletionState::PARTIALLY_DONE;
return PaintImage(stable_image_id_, ImageForCurrentFrame(), animation_type,
- completion_state, FrameCount());
+ completion_state, FrameCount(), is_multi_part_);
}
bool Image::ApplyShader(PaintFlags& flags, const SkMatrix& local_matrix) {

Powered by Google App Engine
This is Rietveld 408576698