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

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

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 | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5a203177da172e5e657c9e4b5e0e87438824655b 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_multipart)
: image_observer_disabled_(false),
image_observer_(observer),
- stable_image_id_(PaintImage::GetNextId()) {}
+ stable_image_id_(PaintImage::GetNextId()),
+ is_multipart_(is_multipart) {}
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_multipart_);
}
bool Image::ApplyShader(PaintFlags& flags, const SkMatrix& local_matrix) {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698