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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.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/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 7d693289215a57779c35e59a33a41e9f9b66208c..f185cf27a9a85da39ade60a303d59e5301a15971 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -59,8 +59,8 @@ PassRefPtr<BitmapImage> BitmapImage::CreateWithOrientationForTesting(
return result.Release();
}
-BitmapImage::BitmapImage(ImageObserver* observer)
- : Image(observer),
+BitmapImage::BitmapImage(ImageObserver* observer, bool is_multi_part)
+ : Image(observer, is_multi_part),
current_frame_(0),
cached_frame_index_(0),
animation_policy_(kImageAnimationPolicyAllowed),
@@ -80,7 +80,7 @@ BitmapImage::BitmapImage(ImageObserver* observer)
->CompositorTaskRunner()) {}
BitmapImage::BitmapImage(const SkBitmap& bitmap, ImageObserver* observer)
- : Image(observer),
+ : Image(observer, false),
vmpstr 2017/06/16 17:35:37 this is the default, so you can omit it
Khushal 2017/06/16 18:26:33 Done.
size_(bitmap.width(), bitmap.height()),
current_frame_(0),
cached_frame_(SkImage::MakeFromBitmap(bitmap)),

Powered by Google App Engine
This is Rietveld 408576698