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

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

Issue 2883593002: Add frame count to paint image. (Closed)
Patch Set: rebase 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 b3e3178382e1f7c8aa96c09484751fe024083210..c0fe493df46129c4a1ca11c08c0c329162c1f085 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -298,10 +298,10 @@ void Image::DrawPattern(GraphicsContext& context,
// Fetch this now as subsetting may swap the image.
auto image_id = image.sk_image()->uniqueID();
- image =
- PaintImage(stable_image_id_,
- image.sk_image()->makeSubset(EnclosingIntRect(norm_src_rect)),
- image.animation_type(), image.completion_state());
+ image = PaintImage(
+ stable_image_id_,
+ image.sk_image()->makeSubset(EnclosingIntRect(norm_src_rect)),
+ image.animation_type(), image.completion_state(), image.frame_count());
if (!image)
return;
@@ -349,7 +349,7 @@ PaintImage Image::PaintImageForCurrentFrame() {
? PaintImage::CompletionState::DONE
: PaintImage::CompletionState::PARTIALLY_DONE;
return PaintImage(stable_image_id_, ImageForCurrentFrame(), animation_type,
- completion_state);
+ completion_state, FrameCount());
}
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